<?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: How To: Assign a Macro to an ActiveX Control</title>
	<atom:link href="http://peltiertech.com/WordPress/how-to-assign-a-macro-to-an-activex-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-an-activex-control/</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Fri, 10 Feb 2012 23:37:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-an-activex-control/comment-page-1/#comment-87297</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Sat, 16 Apr 2011 15:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/13/how-to-assign-a-macro-to-an-activex-control/#comment-87297</guid>
		<description>Pieter -

As described in &lt;a href=&quot;http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/&quot; title=&quot;How To: Assign a Macro to a Button or Shape&quot; rel=&quot;nofollow&quot;&gt;How To Assign a Macro to a Button or Shape&lt;/a&gt;:

Right click on the inserted picture, choose Assign Macro from the popup toolbar, and select the macro from the Assign Macro dialog.</description>
		<content:encoded><![CDATA[<p>Pieter -</p>
<p>As described in <a href="http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/" title="How To: Assign a Macro to a Button or Shape" rel="nofollow">How To Assign a Macro to a Button or Shape</a>:</p>
<p>Right click on the inserted picture, choose Assign Macro from the popup toolbar, and select the macro from the Assign Macro dialog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pieter</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-an-activex-control/comment-page-1/#comment-86942</link>
		<dc:creator>Pieter</dc:creator>
		<pubDate>Fri, 15 Apr 2011 06:09:39 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/13/how-to-assign-a-macro-to-an-activex-control/#comment-86942</guid>
		<description>HI Jon

Ive tried it with inserting a regular picture. What must I put in the macro to attach it to the regular picture? I&#039;ve tried to record a macro, copy a text box and then run it, but then it just flickers and i dont see anything. Ive tried to record and then insert a tect box, copy text into it and then run it, but then it flickers and gives me the last text I typed? I am not that clued up with macros, but my boss requested this, and I do not know how to create something that works and look professional

Hope someone can help me with this.</description>
		<content:encoded><![CDATA[<p>HI Jon</p>
<p>Ive tried it with inserting a regular picture. What must I put in the macro to attach it to the regular picture? I&#8217;ve tried to record a macro, copy a text box and then run it, but then it just flickers and i dont see anything. Ive tried to record and then insert a tect box, copy text into it and then run it, but then it flickers and gives me the last text I typed? I am not that clued up with macros, but my boss requested this, and I do not know how to create something that works and look professional</p>
<p>Hope someone can help me with this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Weir</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-an-activex-control/comment-page-1/#comment-86872</link>
		<dc:creator>Jeff Weir</dc:creator>
		<pubDate>Thu, 14 Apr 2011 21:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/13/how-to-assign-a-macro-to-an-activex-control/#comment-86872</guid>
		<description>Jon: Here&#039;s a very sneaky way to do this from Sam (one of my fellow participants on the Excel Hero course, and a regular on some of the boards). He puts a tranparent textbox over the top of the activex controls, so that someone trying to select the activex control inadvertantly selects the textbox, which then uses application.caller to pass the name of the calling textbox to the activex control with the same name. Ingenious! Sneaky!

&lt;pre class=&quot;vbasmall&quot;&gt;&lt;code&gt;Sub FinCtrl()
  Dim tBox As Object &#039; ActiveX
  Dim tShp As Shape &#039; Textbox

  Set tBox = Sheet1.OLEObjects(&quot;Text&quot; &amp; Application.Caller).Object
  Set tShp = Sheet1.Shapes(Application.Caller)

  &#039; Perform your action on the text Box clicked
  tBox.Text = &quot;Hello From&quot; &amp; &quot;Text&quot; &amp; Application.Caller

  tShp.Visible = msoFalse
  MsgBox &quot;yea&quot;

End Sub&lt;/code&gt;&lt;/pre&gt;

Workbook at https://docs.google.com/leaf?id=0B1hgC5lSuLjVZGEwZmRhNGYtNDA2NS00MWU4LThjYjQtMmI5MGFjMTBhYjYy&amp;hl=en</description>
		<content:encoded><![CDATA[<p>Jon: Here&#8217;s a very sneaky way to do this from Sam (one of my fellow participants on the Excel Hero course, and a regular on some of the boards). He puts a tranparent textbox over the top of the activex controls, so that someone trying to select the activex control inadvertantly selects the textbox, which then uses application.caller to pass the name of the calling textbox to the activex control with the same name. Ingenious! Sneaky!</p>
<pre class="vbasmall"><code>Sub FinCtrl()
  Dim tBox As Object ' ActiveX
  Dim tShp As Shape ' Textbox

  Set tBox = Sheet1.OLEObjects("Text" &amp; Application.Caller).Object
  Set tShp = Sheet1.Shapes(Application.Caller)

  ' Perform your action on the text Box clicked
  tBox.Text = "Hello From" &amp; "Text" &amp; Application.Caller

  tShp.Visible = msoFalse
  MsgBox "yea"

End Sub</code></pre>
<p>Workbook at <a href="https://docs.google.com/leaf?id=0B1hgC5lSuLjVZGEwZmRhNGYtNDA2NS00MWU4LThjYjQtMmI5MGFjMTBhYjYy&#038;hl=en" rel="nofollow">https://docs.google.com/leaf?id=0B1hgC5lSuLjVZGEwZmRhNGYtNDA2NS00MWU4LThjYjQtMmI5MGFjMTBhYjYy&#038;hl=en</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-an-activex-control/comment-page-1/#comment-86767</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 14 Apr 2011 15:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/13/how-to-assign-a-macro-to-an-activex-control/#comment-86767</guid>
		<description>Pieter -

Could you use regular inserted pictures? You can assign each to a macro that shows the relevant text boxes. Clear and Compile buttons can be done in the same way with Forms menu buttons, and macros assigned to them.</description>
		<content:encoded><![CDATA[<p>Pieter -</p>
<p>Could you use regular inserted pictures? You can assign each to a macro that shows the relevant text boxes. Clear and Compile buttons can be done in the same way with Forms menu buttons, and macros assigned to them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pieter</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-an-activex-control/comment-page-1/#comment-86012</link>
		<dc:creator>Pieter</dc:creator>
		<pubDate>Tue, 12 Apr 2011 06:51:32 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/13/how-to-assign-a-macro-to-an-activex-control/#comment-86012</guid>
		<description>HI Jon

I need to create a &quot;configurator&quot; where I have 5 ActiveX Control Pictures. If you click on the first picture, it must give me 4 boxes.
1st box - must be a box that have general info in it about the item in the picture.
2nd, 3rd &amp; 4th box- must bring up a box that several items can be selected and later carried over to another sheet that can be printed out.

Then there must be a clear button to clear all 4 box and only leave the 5 pictures there. then when you click on another picture the 4 boxes must appear with info about that specific item in the picture.

THen after everything has been selected there must be a Quote button that take all the selected data to another sheet to be compiled into a Quote sheet.

Can all this be done??

Great site!

Pieter</description>
		<content:encoded><![CDATA[<p>HI Jon</p>
<p>I need to create a &#8220;configurator&#8221; where I have 5 ActiveX Control Pictures. If you click on the first picture, it must give me 4 boxes.<br />
1st box &#8211; must be a box that have general info in it about the item in the picture.<br />
2nd, 3rd &amp; 4th box- must bring up a box that several items can be selected and later carried over to another sheet that can be printed out.</p>
<p>Then there must be a clear button to clear all 4 box and only leave the 5 pictures there. then when you click on another picture the 4 boxes must appear with info about that specific item in the picture.</p>
<p>THen after everything has been selected there must be a Quote button that take all the selected data to another sheet to be compiled into a Quote sheet.</p>
<p>Can all this be done??</p>
<p>Great site!</p>
<p>Pieter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Weir</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-an-activex-control/comment-page-1/#comment-81003</link>
		<dc:creator>Jeff Weir</dc:creator>
		<pubDate>Thu, 24 Mar 2011 19:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/13/how-to-assign-a-macro-to-an-activex-control/#comment-81003</guid>
		<description>Very good idea re selecting the entire textbox. 

I&#039;m using textboxes because I wanted to escape the &#039;grid&#039; for a form I&#039;m putting together. http://screencast.com/t/5mYAEhDgAZX 

I thought I&#039;d have more chance of getting people to fill in a form properly if it looks just like a &#039;bought one&#039;. 

So far my favorite part of the form is the &#039;007&#039; reference at the top left.</description>
		<content:encoded><![CDATA[<p>Very good idea re selecting the entire textbox. </p>
<p>I&#8217;m using textboxes because I wanted to escape the &#8216;grid&#8217; for a form I&#8217;m putting together. <a href="http://screencast.com/t/5mYAEhDgAZX" rel="nofollow">http://screencast.com/t/5mYAEhDgAZX</a> </p>
<p>I thought I&#8217;d have more chance of getting people to fill in a form properly if it looks just like a &#8216;bought one&#8217;. </p>
<p>So far my favorite part of the form is the &#8217;007&#8242; reference at the top left.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

