<?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: Controls: ActiveX vs. Forms</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/</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: Chandni</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/#comment-40569</link>
		<dc:creator>Chandni</dc:creator>
		<pubDate>Tue, 11 Aug 2009 04:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=713#comment-40569</guid>
		<description>&lt;p&gt;But i want to use Change event property in Excel 2007. And ActiveX controls does&#039;t works in 2007.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>But i want to use Change event property in Excel 2007. And ActiveX controls does&#8217;t works in 2007.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/#comment-40565</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Mon, 10 Aug 2009 21:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=713#comment-40565</guid>
		<description>&lt;p&gt;Forms controls don&#039;t have change events, only an OnAction property.  You have to use ActiveX controls if you want events.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Forms controls don&#8217;t have change events, only an OnAction property.  You have to use ActiveX controls if you want events.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandni</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/#comment-40552</link>
		<dc:creator>Chandni</dc:creator>
		<pubDate>Mon, 10 Aug 2009 09:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=713#comment-40552</guid>
		<description>&lt;p&gt;How to get change event for form controls in Excel.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>How to get change event for form controls in Excel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Calan</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/#comment-34941</link>
		<dc:creator>Calan</dc:creator>
		<pubDate>Fri, 03 Oct 2008 01:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=713#comment-34941</guid>
		<description>&lt;p&gt;I am having some trouble with my embedded Active X forms.&lt;/p&gt;
&lt;p&gt;I have a number of embedded controls on a worksheet (text boxes, combo boxes and labels) inserted using the Control Toolbox.&lt;/p&gt;
&lt;p&gt;When the controls become activated, the height, width and text grow.&lt;br&gt;
When they loose focus they return to the original size and text size.&lt;br&gt;
An image of the effect is here: &lt;a href=&quot;http://img511.imageshack.us/my.php?image=image1he9.gif&quot; rel=&quot;nofollow&quot;&gt;http://img511.imageshack.us/my.php?image=image1he9.gif&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am running Excel 2003 and have Microsoft Forms 2.0 Object Library referenced. However, the same thing happens with Excel 2007.&lt;/p&gt;
&lt;p&gt;The following kind of fixes the problem&lt;/p&gt;
&lt;p&gt;&lt;code lang=&quot;vb&quot;&gt;&lt;br&gt;
Private Sub TextBox1_LostFocus()&lt;br&gt;
    TextBox1.Width = 99.75&lt;br&gt;
    TextBox1.Height = 14.25&lt;br&gt;
    TextBox1.Font.Size = 10&lt;br&gt;
End Sub&lt;/code&gt;&lt;/p&gt;
&lt;code lang=&quot;vb&quot;&gt;
&lt;p&gt;Private Sub TextBox1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)&lt;br&gt;
    TextBox1.Width = 99&lt;br&gt;
    TextBox1.Height = 13.5&lt;br&gt;
    TextBox1.Font.Size = 9&lt;br&gt;
End Sub&lt;br&gt;
&lt;/p&gt;&lt;/code&gt;
&lt;p&gt;&lt;code lang=&quot;vb&quot;&gt;&lt;/code&gt;&lt;/p&gt;
&lt;code lang=&quot;vb&quot;&gt;
&lt;p&gt;However it only works when you select the form and then click in the workbook. If you select one Active X controls and then select another, the previously selected control forms grows until you wiggle the mouse and then it shrinks again.&lt;/p&gt;
&lt;p&gt;The form controls (inserted using the forms toolbox) do not have this problem.&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Calan.&lt;/p&gt;&lt;/code&gt;
&lt;p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am having some trouble with my embedded Active X forms.</p>
<p>I have a number of embedded controls on a worksheet (text boxes, combo boxes and labels) inserted using the Control Toolbox.</p>
<p>When the controls become activated, the height, width and text grow.<br />
When they loose focus they return to the original size and text size.<br />
An image of the effect is here: <a href="http://img511.imageshack.us/my.php?image=image1he9.gif" rel="nofollow">http://img511.imageshack.us/my.php?image=image1he9.gif</a></p>
<p>I am running Excel 2003 and have Microsoft Forms 2.0 Object Library referenced. However, the same thing happens with Excel 2007.</p>
<p>The following kind of fixes the problem</p>
<p><div class="codecolorer-container vb default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;br&gt;<br />
<span style="color: #E56717; font-weight: bold;">Private</span> <span style="color: #E56717; font-weight: bold;">Sub</span> TextBox1_LostFocus()&lt;br&gt;<br />
&nbsp; &nbsp; TextBox1.Width = 99.75&lt;br&gt;<br />
&nbsp; &nbsp; TextBox1.Height = 14.25&lt;br&gt;<br />
&nbsp; &nbsp; TextBox1.Font.Size = 10&lt;br&gt;<br />
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></div></div>
</p>
<div class="codecolorer-container vb default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;p&gt;<span style="color: #E56717; font-weight: bold;">Private</span> <span style="color: #E56717; font-weight: bold;">Sub</span> TextBox1_MouseDown(<span style="color: #151B8D; font-weight: bold;">ByVal</span> Button <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> Shift <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Integer</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> X <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Single</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> Y <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Single</span>)&lt;br&gt;<br />
&nbsp; &nbsp; TextBox1.Width = 99&lt;br&gt;<br />
&nbsp; &nbsp; TextBox1.Height = 13.5&lt;br&gt;<br />
&nbsp; &nbsp; TextBox1.Font.Size = 9&lt;br&gt;<br />
<span style="color: #8D38C9; font-weight: bold;">End</span> Sub&lt;br&gt;<br />
&lt;/p&gt;</div></div>
<p><div class="codecolorer-container vb default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;</div></div>
</p>
<div class="codecolorer-container vb default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;p&gt;However it only works when you <span style="color: #8D38C9; font-weight: bold;">select</span> the form <span style="color: #8D38C9; font-weight: bold;">and</span> <span style="color: #8D38C9; font-weight: bold;">then</span> click <span style="color: #8D38C9; font-weight: bold;">in</span> the workbook. <span style="color: #8D38C9; font-weight: bold;">If</span> you <span style="color: #8D38C9; font-weight: bold;">select</span> one Active X controls <span style="color: #8D38C9; font-weight: bold;">and</span> <span style="color: #8D38C9; font-weight: bold;">then</span> <span style="color: #8D38C9; font-weight: bold;">select</span> another, the previously selected <span style="color: #151B8D; font-weight: bold;">control</span> forms grows <span style="color: #8D38C9; font-weight: bold;">until</span> you wiggle the mouse <span style="color: #8D38C9; font-weight: bold;">and</span> <span style="color: #8D38C9; font-weight: bold;">then</span> it shrinks again.&lt;/p&gt;<br />
&lt;p&gt;The form controls (inserted using the forms toolbox) <span style="color: #8D38C9; font-weight: bold;">do</span> <span style="color: #8D38C9; font-weight: bold;">not</span> have this problem.&lt;/p&gt;<br />
&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;<br />
&lt;p&gt;Thanks <span style="color: #8D38C9; font-weight: bold;">in</span> advance.&lt;/p&gt;<br />
&lt;p&gt;Calan.&lt;/p&gt;</div></div></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thomas david</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/#comment-19528</link>
		<dc:creator>thomas david</dc:creator>
		<pubDate>Thu, 20 Apr 2006 22:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=713#comment-19528</guid>
		<description>&lt;p&gt;I have been using the Textbox Active-X Control, but could really use something where the the font size and attributes for text inside the box can be changed.  Perhaps there is a way with the standard Excel control but it is not readily apparent to me, or maybe another Textbox tool that does this is available?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have been using the Textbox Active-X Control, but could really use something where the the font size and attributes for text inside the box can be changed.  Perhaps there is a way with the standard Excel control but it is not readily apparent to me, or maybe another Textbox tool that does this is available?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/#comment-2140</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Fri, 13 Aug 2004 16:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=713#comment-2140</guid>
		<description>&lt;p&gt;My preference is to use ActiveX controls. I find them more secure &amp; easier to protect (location, size, macro) from tampering or accidental changes &amp; corruption.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>My preference is to use ActiveX controls. I find them more secure &amp; easier to protect (location, size, macro) from tampering or accidental changes &amp; corruption.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Miller</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/#comment-2139</link>
		<dc:creator>Andy Miller</dc:creator>
		<pubDate>Fri, 13 Aug 2004 14:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=713#comment-2139</guid>
		<description>&lt;p&gt;I do believe that the Form controls are there as left-overs from past versions. I tend to not use them often for a couple reasons. For one, like has been mentioned before, I like the control over the variable that the ActiveX controls give me. For another, I once had a workbook that had quite a large number of form controls (it was one that I had inherited, and it was created in an older version of Excel) get corrupted on me. Most of my calls to public functions got corrupted, including any sub called by a form control. Also, I do have a fear of relying on the &#039;old&#039; controls knowing that Microsoft may decide not to support them with any new version.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I do believe that the Form controls are there as left-overs from past versions. I tend to not use them often for a couple reasons. For one, like has been mentioned before, I like the control over the variable that the ActiveX controls give me. For another, I once had a workbook that had quite a large number of form controls (it was one that I had inherited, and it was created in an older version of Excel) get corrupted on me. Most of my calls to public functions got corrupted, including any sub called by a form control. Also, I do have a fear of relying on the &#8216;old&#8217; controls knowing that Microsoft may decide not to support them with any new version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ross</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/#comment-2138</link>
		<dc:creator>ross</dc:creator>
		<pubDate>Fri, 13 Aug 2004 10:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=713#comment-2138</guid>
		<description>&lt;p&gt;The main version of excel where I work is 97, so I am forced to use form controls with chart sheets (I think this might have changed in later versions, I&#039;m not sure now!). But apart form that I use activeX as I much prefer the &quot;control&quot; I can have over the control. I&#039;ve never really come across any bugs - save the odd button taking a while to show up - and on the scale of development I&#039;m doing, and with modern PC&#039;s, over heads have never really been an issue. Interesting points though because I would never have  thought about the advantages of using form controls.&lt;br&gt;
I have often wondered, (well, maybe not often, but once or twice defiantly) if form control will be removed - esp. if .net is introduced&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The main version of excel where I work is 97, so I am forced to use form controls with chart sheets (I think this might have changed in later versions, I&#8217;m not sure now!). But apart form that I use activeX as I much prefer the &#8220;control&#8221; I can have over the control. I&#8217;ve never really come across any bugs &#8211; save the odd button taking a while to show up &#8211; and on the scale of development I&#8217;m doing, and with modern PC&#8217;s, over heads have never really been an issue. Interesting points though because I would never have  thought about the advantages of using form controls.<br />
I have often wondered, (well, maybe not often, but once or twice defiantly) if form control will be removed &#8211; esp. if .net is introduced</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Collins</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/#comment-2137</link>
		<dc:creator>Jamie Collins</dc:creator>
		<pubDate>Fri, 13 Aug 2004 09:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=713#comment-2137</guid>
		<description>&lt;p&gt;I use the ActiveX controls because I am invariably using classes i.e. I can use a WithEvents object variable that references an ActiveX control. &lt;/p&gt;
&lt;p&gt;The Forms controls can only run a single public Sub located in a standard module, I guess because it is using a callback that requires the procedure&#039;s memory address. Standard modules don&#039;t really fit with my OOP development approach.&lt;/p&gt;
&lt;p&gt;So if my control requires code then I will use the ActiveX version. Yes, they are buggy, some more than others. It pays to do testing and googling to be aware of any issues before investing too much development time.&lt;/p&gt;
&lt;p&gt;Jamie (Sorry, not a Richard).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I use the ActiveX controls because I am invariably using classes i.e. I can use a WithEvents object variable that references an ActiveX control. </p>
<p>The Forms controls can only run a single public Sub located in a standard module, I guess because it is using a callback that requires the procedure&#8217;s memory address. Standard modules don&#8217;t really fit with my OOP development approach.</p>
<p>So if my control requires code then I will use the ActiveX version. Yes, they are buggy, some more than others. It pays to do testing and googling to be aware of any issues before investing too much development time.</p>
<p>Jamie (Sorry, not a Richard).</p>
<p></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/08/11/controls-activex-vs-forms/#comment-2136</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Thu, 12 Aug 2004 14:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=713#comment-2136</guid>
		<description>&lt;p&gt;Rich, Richard and Dick, all in the same comments section.  That&#039;s a great point, Rich.  I haven&#039;t used a Mac in about 8 years.  Thanks for the contribution.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Rich, Richard and Dick, all in the same comments section.  That&#8217;s a great point, Rich.  I haven&#8217;t used a Mac in about 8 years.  Thanks for the contribution.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

