<?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: Adding ActiveX Controls to Worksheet in VBA</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:01:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: DK</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/#comment-51896</link>
		<dc:creator>DK</dc:creator>
		<pubDate>Wed, 06 Oct 2010 06:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=796#comment-51896</guid>
		<description>&lt;p&gt;Further to my previous comment, I add the check box using the code dynamically and not after getting into design mode!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Further to my previous comment, I add the check box using the code dynamically and not after getting into design mode!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DK</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/#comment-51895</link>
		<dc:creator>DK</dc:creator>
		<pubDate>Wed, 06 Oct 2010 06:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=796#comment-51895</guid>
		<description>&lt;p&gt;I have a macro that is running, now I copy a set of rows from one sheet to other and add&lt;br&gt;
a check box to the newly copied cells. &lt;/p&gt;
&lt;p&gt;However the macro that is running exits!! Have any clues why?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have a macro that is running, now I copy a set of rows from one sheet to other and add<br />
a check box to the newly copied cells. </p>
<p>However the macro that is running exits!! Have any clues why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/#comment-35809</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Mon, 27 Oct 2008 11:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=796#comment-35809</guid>
		<description>&lt;p&gt;Thank you very much for these detailed instructions. Works flawlessly!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you very much for these detailed instructions. Works flawlessly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/#comment-29038</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Thu, 29 Nov 2007 13:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=796#comment-29038</guid>
		<description>&lt;p&gt;Shelita,&lt;/p&gt;
&lt;p&gt;     Option Buttons are good for only allowing one selection. However, you could put VBA code in each check box that clears the other ones.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Shelita,</p>
<p>     Option Buttons are good for only allowing one selection. However, you could put VBA code in each check box that clears the other ones.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shelita</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/#comment-29017</link>
		<dc:creator>Shelita</dc:creator>
		<pubDate>Wed, 28 Nov 2007 20:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=796#comment-29017</guid>
		<description>&lt;p&gt;I can&#039;t figure out how to allow only one selection out of four checkboxes (like on a survey) using Excel.  Is it possible?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I can&#8217;t figure out how to allow only one selection out of four checkboxes (like on a survey) using Excel.  Is it possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/#comment-24295</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 23 May 2007 17:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=796#comment-24295</guid>
		<description>&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;Sub&lt;/span&gt; test()&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; ole &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; OLEObject&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; ole = Sheet1.OLEObjects.Add(&lt;span class=&quot;st0&quot;&gt;&quot;forms.commandbutton.1&quot;&lt;/span&gt;)&lt;br&gt;
&#160; &#160; ole.Name = &lt;span class=&quot;st0&quot;&gt;&quot;newName&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; ole = &lt;span class=&quot;kw1&quot;&gt;Nothing&lt;/span&gt;&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[<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Sub</span> test()<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">Dim</span> ole <span class="kw1">As</span> OLEObject<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">Set</span> ole = Sheet1.OLEObjects.Add(<span class="st0">&#8220;forms.commandbutton.1&#8243;</span>)<br />
&nbsp; &nbsp; ole.Name = <span class="st0">&#8220;newName&#8221;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">Set</span> ole = <span class="kw1">Nothing</span><br />
&nbsp; &nbsp; <br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hudson</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/#comment-24282</link>
		<dc:creator>Hudson</dc:creator>
		<pubDate>Wed, 23 May 2007 08:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=796#comment-24282</guid>
		<description>&lt;p&gt;Could you tell me how to rename the controls that adding in VBA ? I&#039;ve try in 2 way:&lt;br&gt;
1) Sheet1.OLEObjects.Add(name:=&quot;newName&quot; ....&lt;br&gt;
2) .object.name=&quot;NewName&quot;&lt;br&gt;
 But fail. &lt;/p&gt;
&lt;p&gt;Thx&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Could you tell me how to rename the controls that adding in VBA ? I&#8217;ve try in 2 way:<br />
1) Sheet1.OLEObjects.Add(name:=&#8221;newName&#8221; &#8230;.<br />
2) .object.name=&#8221;NewName&#8221;<br />
 But fail. </p>
<p>Thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Padam Kumar Tripathi</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/#comment-20531</link>
		<dc:creator>Padam Kumar Tripathi</dc:creator>
		<pubDate>Thu, 10 Aug 2006 09:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=796#comment-20531</guid>
		<description>&lt;p&gt;I need your help again. Can you help me pls? &lt;/p&gt;
&lt;p&gt;Image size appears in button(msocontrolbutton) of custom toolbar Excel 2000 is very small and blurred using below code. How I can increase size of image in button (msocontrolbutton) as well as brightness of image in custom toolbar of Excel 2000 using VBA? &lt;/p&gt;
&lt;p&gt;It would be really great help for me...... &lt;/p&gt;
&lt;p&gt;My code:&lt;br&gt;
&#039;========================================&lt;/p&gt;
&lt;p&gt;   Const cImgCommandBarID As String = &quot;TMC Img Toolbar&quot;&lt;/p&gt;
&lt;p&gt;&#039;Image code&lt;/p&gt;
&lt;p&gt;    Dim cbImgBar As CommandBar&lt;/p&gt;
&lt;p&gt;    Set cbImgBar = CommandBars.Add(Name:=cImgCommandBarID, Position:=msoBarTop)&lt;/p&gt;
&lt;p&gt;    &#039;cbImgBar.context = 1000&lt;/p&gt;
&lt;p&gt;    Dim cbImage As CommandBarControl&lt;/p&gt;
&lt;p&gt;    Dim imgTool As Shape&lt;/p&gt;
&lt;p&gt;    Dim sFileName, ImgSheet&lt;/p&gt;
&lt;p&gt;    sFileName = ActiveWorkbook.Path &amp; &quot;ImagesABC.jpg&quot;&lt;/p&gt;
&lt;p&gt;    Const sNAME = &quot;MyToolFace&quot;&lt;/p&gt;
&lt;p&gt;    &#039;================&lt;/p&gt;
&lt;p&gt;    &#039; hide appearance of picture from the user&lt;/p&gt;
&lt;p&gt;    Application.ScreenUpdating = False&lt;/p&gt;
&lt;p&gt;    &#039; insert picture from file and copy inserted picture&lt;/p&gt;
&lt;p&gt;    ActiveSheet.Pictures.Insert(sFileName).CopyPicture Appearance:=xlScreen, Format:= xlBitmap&lt;/p&gt;
&lt;p&gt;    Set cbImage = cbImgBar.Controls.Add(Type:=msoControlButton)&lt;/p&gt;
&lt;p&gt;    With cbImage&lt;/p&gt;
&lt;p&gt;        &#039;.FaceId = 198&lt;/p&gt;
&lt;p&gt;        .Caption = &quot;TheMarketsImage&quot;&lt;/p&gt;
&lt;p&gt;        .Style = msoButtonIcon&lt;/p&gt;
&lt;p&gt;        .Width = 120&lt;/p&gt;
&lt;p&gt;        .Height = 100&lt;/p&gt;
&lt;p&gt;        .PasteFace&lt;/p&gt;
&lt;p&gt;    End With&lt;/p&gt;
&lt;p&gt;    &#039; remove the inserted picture&lt;/p&gt;
&lt;p&gt;    ActiveSheet.Pictures(ActiveSheet.Pictures.Count).Delete&lt;/p&gt;
&lt;p&gt;    Application.ScreenUpdating = True&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I need your help again. Can you help me pls? </p>
<p>Image size appears in button(msocontrolbutton) of custom toolbar Excel 2000 is very small and blurred using below code. How I can increase size of image in button (msocontrolbutton) as well as brightness of image in custom toolbar of Excel 2000 using VBA? </p>
<p>It would be really great help for me&#8230;&#8230; </p>
<p>My code:<br />
&#8216;========================================</p>
<p>   Const cImgCommandBarID As String = &#8220;TMC Img Toolbar&#8221;</p>
<p>&#8216;Image code</p>
<p>    Dim cbImgBar As CommandBar</p>
<p>    Set cbImgBar = CommandBars.Add(Name:=cImgCommandBarID, Position:=msoBarTop)</p>
<p>    &#8216;cbImgBar.context = 1000</p>
<p>    Dim cbImage As CommandBarControl</p>
<p>    Dim imgTool As Shape</p>
<p>    Dim sFileName, ImgSheet</p>
<p>    sFileName = ActiveWorkbook.Path &amp; &#8220;ImagesABC.jpg&#8221;</p>
<p>    Const sNAME = &#8220;MyToolFace&#8221;</p>
<p>    &#8216;================</p>
<p>    &#8216; hide appearance of picture from the user</p>
<p>    Application.ScreenUpdating = False</p>
<p>    &#8216; insert picture from file and copy inserted picture</p>
<p>    ActiveSheet.Pictures.Insert(sFileName).CopyPicture Appearance:=xlScreen, Format:= xlBitmap</p>
<p>    Set cbImage = cbImgBar.Controls.Add(Type:=msoControlButton)</p>
<p>    With cbImage</p>
<p>        &#8216;.FaceId = 198</p>
<p>        .Caption = &#8220;TheMarketsImage&#8221;</p>
<p>        .Style = msoButtonIcon</p>
<p>        .Width = 120</p>
<p>        .Height = 100</p>
<p>        .PasteFace</p>
<p>    End With</p>
<p>    &#8216; remove the inserted picture</p>
<p>    ActiveSheet.Pictures(ActiveSheet.Pictures.Count).Delete</p>
<p>    Application.ScreenUpdating = True</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Horowitz</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/#comment-18484</link>
		<dc:creator>Eric Horowitz</dc:creator>
		<pubDate>Mon, 30 Jan 2006 20:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=796#comment-18484</guid>
		<description>&lt;p&gt;I find that when I add a scroll bar to a sheet using OLEObjects.Add, I loose my context. I.e., all variables in the VBA code are reset.&lt;/p&gt;
&lt;p&gt;Have you experienced this?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I find that when I add a scroll bar to a sheet using OLEObjects.Add, I loose my context. I.e., all variables in the VBA code are reset.</p>
<p>Have you experienced this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony M</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/10/06/adding-activex-controls-to-worksheet-in-vba/#comment-2394</link>
		<dc:creator>Tony M</dc:creator>
		<pubDate>Thu, 07 Oct 2004 09:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=796#comment-2394</guid>
		<description>&lt;p&gt;I think it&#039;s a great suggestion. As Jon says in your example you could just use an X in column A but if you&#039;re doing something for someone else a set of check boxes looks a lot more &quot;professional&quot;. It&#039;s certainly an idea I&#039;m going to file away for future use (like a lot of the stuff you come up with on this blog).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I think it&#8217;s a great suggestion. As Jon says in your example you could just use an X in column A but if you&#8217;re doing something for someone else a set of check boxes looks a lot more &#8220;professional&#8221;. It&#8217;s certainly an idea I&#8217;m going to file away for future use (like a lot of the stuff you come up with on this blog).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

