<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ladysign Dev Blog &#187; excel</title>
	<atom:link href="http://www.ladysign-apps.com/blog/tag/excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 12 Dec 2011 16:58:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Code snippets VBA</title>
		<link>http://www.ladysign-apps.com/blog/code/vba/code-snippets-vba/</link>
		<comments>http://www.ladysign-apps.com/blog/code/vba/code-snippets-vba/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 06:39:54 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[vba]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[visual basic]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=16</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>At the moment I&#8217;m working on the automation of a MS Excel sheet.<br />
Here are some handy code snippets &#038; tips:</p>
<p>Not[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/vba/code-snippets-vba/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>At the moment I&#8217;m working on the automation of a MS Excel sheet.<br />
Here are some handy code snippets &#038; tips:</p>
<p>Not Equal, In most programming languages you&#8217;ll write this as: </p>
<pre class="brush: jscript; title: ;">
//not equal operator in javascript
x != y;
</pre>
<p>In vb script / vba this is different:</p>
<pre class="brush: vb; title: ;">
'Not equal operator in vb script
x &lt;&gt; y
</pre>
<p>You can use the vb messagebox for debugging information. The biggest disadvantage is that you<br />
have to click every time on the ok button. &#8211; Imagine if your workbook contains more then 1000<br />
fields and somewhere the data is not correct.<br />
For this you want the Debug statement.<br />
Open the Immediate Window from MS Visual Basic Code screen > View. (CTRL + G). Write in your code the following line:</p>
<pre class="brush: vb; title: ;">
Debug.Print &quot;Debug message here.&quot;
</pre>
<p>Find the last filled row</p>
<pre class="brush: vb; title: ;">
    'Find the last filled row
    maxRowNumber = Sourcedoc.Cells.SpecialCells(xlCellTypeLastCell).row
</pre>
<p><a href="http://www.example-code.com/vb/string.asp">More vba codes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/vba/code-snippets-vba/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

