 




<?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>IT Answers &#187; default settings</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/default-settings/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 14:27:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Trouble with Unload statement in VBA</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/trouble-with-unload-statement-in-vba/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/trouble-with-unload-statement-in-vba/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 19:47:34 +0000</pubDate>
		<dc:creator>McNitro</dc:creator>
				<category><![CDATA[default settings]]></category>
		<category><![CDATA[Excel 2003]]></category>
		<category><![CDATA[unload statement]]></category>
		<category><![CDATA[userforms]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[What am I missing? I have written code with an Unload Userform statement that doesn&#8217;t seem to wipe out the Userform from memory. For Ex: (Default: CheckBox1.Value = False) MyForm.Show CheckBox1.Value = True Unload MyForm MyForm.Show So, the form is shown to the user, and they mark CheckBox1 so the value now equals True. The form [...]]]></description>
				<content:encoded><![CDATA[<p>What am I missing?<br/><br/> I have written code with an Unload Userform statement that doesn&#8217;t seem to wipe out the Userform from memory.<br/><br/> For Ex: (Default: CheckBox1.Value = False)<br/><br/>
<pre>MyForm.Show</pre>
<p><br/><br/>
<pre>CheckBox1.Value = True</pre>
<p><br/><br/>
<pre>Unload MyForm</pre>
<p><br/><br/>
<pre>MyForm.Show</pre>
<p><br/><br/> So, the form is shown to the user, and they mark CheckBox1 so the value now equals True. The form is then unloaded, but when it is shown to the user again CheckBox1 is still marked.  If I write the Unload statement into the code, shouldn&#8217;t the form be shown the next time with all default values in place (i.e. CheckBox1 = False)?<br/><br/> Resetting the value of a CheckBox is a simple task, but when the forms incorporate ComboBox(es), TextBoxe(es), ListBox(es)&#8230;and on, and on, how can the form be reset to all default values the next time it is shown if the Unload statement doesn&#8217;t work?  I&#8217;ve tried repaint as well.<br/><br/> Hope this makes sense!<br/><br/> Thanks<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/trouble-with-unload-statement-in-vba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/12 queries in 0.016 seconds using memcached
Object Caching 317/329 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 20:29:36 -->