<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Combobox Events in an Add-in</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dede</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/#comment-24152</link>
		<dc:creator>Dede</dc:creator>
		<pubDate>Wed, 16 May 2007 05:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1667#comment-24152</guid>
		<description>&lt;p&gt;It sounds new for me and I will do this experiment.Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>It sounds new for me and I will do this experiment.Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tushar Mehta</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/#comment-24020</link>
		<dc:creator>Tushar Mehta</dc:creator>
		<pubDate>Fri, 11 May 2007 14:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1667#comment-24020</guid>
		<description>&lt;p&gt;Dick wrote:&lt;br&gt;
&quot;jkp: I tried that yesterday. I put a withevents userform variable and a withevents textbox variable in a custom class, but I wasn&#039;t able to &quot;contain&quot; one inside the other - they were both just contained in the custom class. The linking mechanism must not be exposed. Also, you can&#039;t WithEvents another custom class because it doesn&#039;t &quot;source automation objects&quot; or some such thing.&quot;&lt;/p&gt;
&lt;p&gt;It gets worse.  I&#039;ve done -- or at least tried to do -- things along these lines for several years now.&lt;/p&gt;
&lt;p&gt;One can declare a WithEvents MSForms.Control variable.  Once that&#039;s done, it exposes several events including Enter and Exit.&lt;/p&gt;
&lt;p&gt;However, when one tries to set the variable to a real control, VBA raises a runtime error about &quot;control does not support these events.&quot;  Even if one just declares the variable and has no event procedures, VBA still raises the same error.&lt;/p&gt;
&lt;p&gt;I have a fair bit more on this subject.  Hopefully, I&#039;ll put it on my website over the weekend.  The material includes a tutorial on how to deal with certain events raised for userform controls (very much like Dick&#039;s blog post), an extension to create a jigsaw puzzle in an userform, and a large &quot;black box&quot; class module to deal with events for every standard userform control.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick wrote:<br />
&#8220;jkp: I tried that yesterday. I put a withevents userform variable and a withevents textbox variable in a custom class, but I wasn&#8217;t able to &#8220;contain&#8221; one inside the other &#8211; they were both just contained in the custom class. The linking mechanism must not be exposed. Also, you can&#8217;t WithEvents another custom class because it doesn&#8217;t &#8220;source automation objects&#8221; or some such thing.&#8221;</p>
<p>It gets worse.  I&#8217;ve done &#8212; or at least tried to do &#8212; things along these lines for several years now.</p>
<p>One can declare a WithEvents MSForms.Control variable.  Once that&#8217;s done, it exposes several events including Enter and Exit.</p>
<p>However, when one tries to set the variable to a real control, VBA raises a runtime error about &#8220;control does not support these events.&#8221;  Even if one just declares the variable and has no event procedures, VBA still raises the same error.</p>
<p>I have a fair bit more on this subject.  Hopefully, I&#8217;ll put it on my website over the weekend.  The material includes a tutorial on how to deal with certain events raised for userform controls (very much like Dick&#8217;s blog post), an extension to create a jigsaw puzzle in an userform, and a large &#8220;black box&#8221; class module to deal with events for every standard userform control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/#comment-24019</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Fri, 11 May 2007 07:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1667#comment-24019</guid>
		<description>&lt;p&gt;I feared so much. Thanks for trying though.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I feared so much. Thanks for trying though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/#comment-24010</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Thu, 10 May 2007 18:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1667#comment-24010</guid>
		<description>&lt;p&gt;jkp:  I tried that yesterday.  I put a withevents userform variable and a withevents textbox variable in a custom class, but I wasn&#039;t able to &quot;contain&quot; one inside the other - they were both just contained in the custom class.  The linking mechanism must not be exposed.  Also, you can&#039;t WithEvents another custom class because it doesn&#039;t &quot;source automation objects&quot; or some such thing.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>jkp:  I tried that yesterday.  I put a withevents userform variable and a withevents textbox variable in a custom class, but I wasn&#8217;t able to &#8220;contain&#8221; one inside the other &#8211; they were both just contained in the custom class.  The linking mechanism must not be exposed.  Also, you can&#8217;t WithEvents another custom class because it doesn&#8217;t &#8220;source automation objects&#8221; or some such thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/#comment-24007</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Thu, 10 May 2007 17:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1667#comment-24007</guid>
		<description>&lt;p&gt;Jon, I&#039;m almost certain that the Exit event is also a container event, and that&#039;s why Dick said that the Change event is the only work-around, and of course it&#039;s not a very good one.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jon, I&#8217;m almost certain that the Exit event is also a container event, and that&#8217;s why Dick said that the Change event is the only work-around, and of course it&#8217;s not a very good one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/#comment-23986</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Thu, 10 May 2007 05:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1667#comment-23986</guid>
		<description>&lt;p&gt;Dick: What happens if you tell the class about the container?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick: What happens if you tell the class about the container?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/#comment-23985</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 10 May 2007 03:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1667#comment-23985</guid>
		<description>&lt;p&gt;I didn&#039;t realize this about a textbox&#039;s AfterUpdate events. I often use its Change or Exit event for the same purpose.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t realize this about a textbox&#8217;s AfterUpdate events. I often use its Change or Exit event for the same purpose.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/#comment-23975</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 09 May 2007 21:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1667#comment-23975</guid>
		<description>&lt;p&gt;Bob:  There are few Textbox events that aren&#039;t exposed via automation and AfterUpdate is one of them.  If I remember correctly, the AfterUpdate event is at the container layer (userform or sheet) so it shows in the container class module.  But since only the control is defined in your custom class module, there is no container layer to house that event.  If you can figure out how to use the Change event, that&#039;s about the only work-around I know.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Bob:  There are few Textbox events that aren&#8217;t exposed via automation and AfterUpdate is one of them.  If I remember correctly, the AfterUpdate event is at the container layer (userform or sheet) so it shows in the container class module.  But since only the control is defined in your custom class module, there is no container layer to house that event.  If you can figure out how to use the Change event, that&#8217;s about the only work-around I know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Hopkins</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/#comment-23972</link>
		<dc:creator>Bob Hopkins</dc:creator>
		<pubDate>Wed, 09 May 2007 17:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1667#comment-23972</guid>
		<description>&lt;p&gt;This morning I was wondering if I could put a text box in a class.  I figured I would find something about it on DDOE if I searched hard enough.  Lo and behold, this was the top  entry at the time!  Thanks very much.&lt;/p&gt;
&lt;p&gt;It appears, however, that some events don&#039;t fire, even when run from an interactive form.  It is the events that aren&#039;t supposed to fire when the event occurs through code.  So even if I am using the form interactively, the textbox _AfterUpdate event doesn&#039;t fire because the event handler is residing in a class.  Am I doing this wrong?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This morning I was wondering if I could put a text box in a class.  I figured I would find something about it on DDOE if I searched hard enough.  Lo and behold, this was the top  entry at the time!  Thanks very much.</p>
<p>It appears, however, that some events don&#8217;t fire, even when run from an interactive form.  It is the events that aren&#8217;t supposed to fire when the event occurs through code.  So even if I am using the form interactively, the textbox _AfterUpdate event doesn&#8217;t fire because the event handler is residing in a class.  Am I doing this wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/05/08/combobox-events-in-an-add-in/#comment-23956</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Tue, 08 May 2007 17:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1667#comment-23956</guid>
		<description>&lt;p&gt;I have demonstrated something similar for handling series of option buttons on a worksheet:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.jkp-ads.com/articles/ControlHandler00.htm&quot; rel=&quot;nofollow&quot;&gt;http://www.jkp-ads.com/articles/ControlHandler00.htm&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have demonstrated something similar for handling series of option buttons on a worksheet:</p>
<p><a href="http://www.jkp-ads.com/articles/ControlHandler00.htm" rel="nofollow">http://www.jkp-ads.com/articles/ControlHandler00.htm</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

