<?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: Toggle Button Events Class</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/08/23/toggle-button-events-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/08/23/toggle-button-events-class/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/23/toggle-button-events-class/#comment-64729</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 15 Jun 2011 15:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1220#comment-64729</guid>
		<description>&lt;p&gt;Sydney:  You can still use Left, Width, Top, and Height even thought they don&#039;t show up in the list.&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; UserForm_Click()&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; tb &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; MSForms.ToggleButton&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; tb = Me.Controls.Add(&lt;span class=&quot;st0&quot;&gt;&quot;Forms.ToggleButton.1&quot;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&quot;tb1&quot;&lt;/span&gt;)&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; tb.Left = 100&lt;br&gt;
&#160; &#160; &lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Sydney:  You can still use Left, Width, Top, and Height even thought they don&#8217;t show up in the list.</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Private</span> <span class="kw1">Sub</span> UserForm_Click()<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">Dim</span> tb <span class="kw1">As</span> MSForms.ToggleButton<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">Set</span> tb = Me.Controls.Add(<span class="st0">&#8220;Forms.ToggleButton.1&#8243;</span>, <span class="st0">&#8220;tb1&#8243;</span>)<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; tb.Left = 100<br />
&nbsp; &nbsp; <br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sydney McHugh</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/23/toggle-button-events-class/#comment-64678</link>
		<dc:creator>Sydney McHugh</dc:creator>
		<pubDate>Mon, 13 Jun 2011 16:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1220#comment-64678</guid>
		<description>&lt;p&gt;Thanks for the fantastic post on event wrappers. I like, particularly, the code to add all the pre-existing toggle buttons to a collection. &lt;/p&gt;
&lt;p&gt;I am having a somewhat related problem. I have been adding controls to a form at runtime (msforms.togglebutton controls, to be exact) and I would like them to be in specific positions on the userform. However, they all show up in the same exact spot (arg) and there don&#039;t seem to be any properties of the togglebutton that can be changed to specify a position on the userform. Do you know how to do this?&lt;/p&gt;
&lt;p&gt;Thanks so much!&lt;/p&gt;
&lt;p&gt;Sydney&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the fantastic post on event wrappers. I like, particularly, the code to add all the pre-existing toggle buttons to a collection. </p>
<p>I am having a somewhat related problem. I have been adding controls to a form at runtime (msforms.togglebutton controls, to be exact) and I would like them to be in specific positions on the userform. However, they all show up in the same exact spot (arg) and there don&#8217;t seem to be any properties of the togglebutton that can be changed to specify a position on the userform. Do you know how to do this?</p>
<p>Thanks so much!</p>
<p>Sydney</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/23/toggle-button-events-class/#comment-36754</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Wed, 31 Dec 2008 20:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1220#comment-36754</guid>
		<description>&lt;p&gt;I&#039;ve been working on this one recently. I can get the grouped controls to work (textboxes in this case) using WithEvents, but I can&#039;t get them to influence other textboxes in the same form.  All I&#039;m trying to do is change the Text of the target textbox(es) (called &quot;Value&quot;) based on input from the first textbox (called &quot;Pct&quot;). I wanted to wrap the &quot;Pct&quot; textbox(es) changes in a Class Change event. But the &quot;Value&quot; textbox(es) all come back with null string for their Text properties, even when there is something there. I suspect it has something to do with the instance of the form class versus the events class, but I&#039;m not sure.&lt;/p&gt;
&lt;p&gt;Anybody have any ideas?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been working on this one recently. I can get the grouped controls to work (textboxes in this case) using WithEvents, but I can&#8217;t get them to influence other textboxes in the same form.  All I&#8217;m trying to do is change the Text of the target textbox(es) (called &#8220;Value&#8221;) based on input from the first textbox (called &#8220;Pct&#8221;). I wanted to wrap the &#8220;Pct&#8221; textbox(es) changes in a Class Change event. But the &#8220;Value&#8221; textbox(es) all come back with null string for their Text properties, even when there is something there. I suspect it has something to do with the instance of the form class versus the events class, but I&#8217;m not sure.</p>
<p>Anybody have any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/23/toggle-button-events-class/#comment-15777</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Wed, 24 Aug 2005 23:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1220#comment-15777</guid>
		<description>&lt;p&gt;Juan,&lt;/p&gt;
&lt;p&gt;Thanks.  I figured Stephen and company were probably to blame .  I&#039;ve switched my behavior with userforms after reading Chapter 10.&lt;/p&gt;
&lt;p&gt;It seems to me this is a little different because the class is a class of togglebuttons already.  If the code was changed to use checkboxes instead, then you&#039;d need an analogous class of checkboxes.  I don&#039;t understand how the Lets/Gets inside the class make it more insulated.  Wouldn&#039;t the encapsulation actually have to be in the standard module so that you could switch from a togglebutton class to a checkbox class?&lt;/p&gt;
&lt;p&gt;I&#039;m over my head here, but just wondering.&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Juan,</p>
<p>Thanks.  I figured Stephen and company were probably to blame .  I&#8217;ve switched my behavior with userforms after reading Chapter 10.</p>
<p>It seems to me this is a little different because the class is a class of togglebuttons already.  If the code was changed to use checkboxes instead, then you&#8217;d need an analogous class of checkboxes.  I don&#8217;t understand how the Lets/Gets inside the class make it more insulated.  Wouldn&#8217;t the encapsulation actually have to be in the standard module so that you could switch from a togglebutton class to a checkbox class?</p>
<p>I&#8217;m over my head here, but just wondering.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan Pablo Gonz·lez</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/23/toggle-button-events-class/#comment-15776</link>
		<dc:creator>Juan Pablo Gonz·lez</dc:creator>
		<pubDate>Wed, 24 Aug 2005 22:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1220#comment-15776</guid>
		<description>&lt;p&gt;Doug,&lt;/p&gt;
&lt;p&gt;Maybe this post will explain it a bit ? Dick took quite a hit the last time for not using &quot;proper&quot; coding techniques :D&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.dicks-blog.com/archives/2005/05/23/getting-data-from-a-userform/&quot; rel=&quot;nofollow&quot;&gt;http://www.dicks-blog.com/archives/2005/05/23/getting-data-from-a-userform/&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Doug,</p>
<p>Maybe this post will explain it a bit ? Dick took quite a hit the last time for not using &#8220;proper&#8221; coding techniques <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a href="http://www.dicks-blog.com/archives/2005/05/23/getting-data-from-a-userform/" rel="nofollow">http://www.dicks-blog.com/archives/2005/05/23/getting-data-from-a-userform/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/23/toggle-button-events-class/#comment-15771</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Wed, 24 Aug 2005 05:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1220#comment-15771</guid>
		<description>&lt;p&gt;Dick,&lt;/p&gt;
&lt;p&gt;Can you explain the purpose of the Let and Get in the Class module?  I think it would work the same without them.  Also, I learned to do this adding the controls to a collection rather than an array.  Do you know if one is preferable over the other?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick,</p>
<p>Can you explain the purpose of the Let and Get in the Class module?  I think it would work the same without them.  Also, I learned to do this adding the controls to a collection rather than an array.  Do you know if one is preferable over the other?</p>
<p>Thanks,</p>
<p>Doug</p>
]]></content:encoded>
	</item>
</channel>
</rss>

