<?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 a Button or Shape</title>
	<atom:link href="http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Thu, 18 Mar 2010 11:28:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<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-a-button-or-shape/comment-page-1/#comment-25730</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 21 Jan 2010 04:11:41 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/12/how-to-assign-a-macro-to-a-button-or-shape/#comment-25730</guid>
		<description>Razib -

There are more effective and relevant places to ask for help. I suggest you read &lt;a href=&quot;http://peltiertech.com/WordPress/finding-help-for-microsoft-excel/&quot; title=&quot;Finding Help for Microsoft Excel&quot; rel=&quot;nofollow&quot;&gt;Finding Help for Microsoft Excel&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Razib -</p>
<p>There are more effective and relevant places to ask for help. I suggest you read <a href="http://peltiertech.com/WordPress/finding-help-for-microsoft-excel/" title="Finding Help for Microsoft Excel" rel="nofollow">Finding Help for Microsoft Excel</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Razib</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/comment-page-1/#comment-25728</link>
		<dc:creator>Razib</dc:creator>
		<pubDate>Thu, 21 Jan 2010 03:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/12/how-to-assign-a-macro-to-a-button-or-shape/#comment-25728</guid>
		<description>I want to generate an order using conditional randbetween function in excel 2007. For example, I want to generate 2000 orders in between 1 to 730 (randbetween(1,730)). But each number betweeen 1 to 730 can&#039;t be repeated more than three times withinin these 2000 orders. Is it possible?
How can I write this function in excel?</description>
		<content:encoded><![CDATA[<p>I want to generate an order using conditional randbetween function in excel 2007. For example, I want to generate 2000 orders in between 1 to 730 (randbetween(1,730)). But each number betweeen 1 to 730 can&#8217;t be repeated more than three times withinin these 2000 orders. Is it possible?<br />
How can I write this function in excel?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/comment-page-1/#comment-23707</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 10 Dec 2009 12:29:23 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/12/how-to-assign-a-macro-to-a-button-or-shape/#comment-23707</guid>
		<description>Razib -

Data tab &gt; Data Tools group (4th from left) &gt; &lt;strong&gt;Text to Columns&lt;/strong&gt; (first item in group).

I recorded a macro, cleaned it up, and here is the function that converts a range of text values to their numeric equivalents:

&lt;pre class=&quot;vbasmall&quot;&gt;Function ConvertTextToNumbers(rng As Range)
  Dim col As Range
  For Each col In rng.Columns
    col.TextToColumns Destination:=col, DataType:=xlDelimited
  Next
End Function&lt;/pre&gt;

&lt;p&gt;&#160;&lt;br /&gt;This is how the function is called:&lt;/p&gt;

&lt;pre class=&quot;vbasmall&quot;&gt;Sub TestTextToNumbers()
  ConvertTextToNumbers Selection
End Sub&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Razib -</p>
<p>Data tab &gt; Data Tools group (4th from left) &gt; <strong>Text to Columns</strong> (first item in group).</p>
<p>I recorded a macro, cleaned it up, and here is the function that converts a range of text values to their numeric equivalents:</p>
<pre class="vbasmall">Function ConvertTextToNumbers(rng As Range)
  Dim col As Range
  For Each col In rng.Columns
    col.TextToColumns Destination:=col, DataType:=xlDelimited
  Next
End Function</pre>
<p>&nbsp;<br />This is how the function is called:</p>
<pre class="vbasmall">Sub TestTextToNumbers()
  ConvertTextToNumbers Selection
End Sub</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Razib</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/comment-page-1/#comment-23678</link>
		<dc:creator>Razib</dc:creator>
		<pubDate>Thu, 10 Dec 2009 04:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/12/how-to-assign-a-macro-to-a-button-or-shape/#comment-23678</guid>
		<description>Thank you for your suggestion. I am able to modify the charts using macro in 2003 but not 2007.
I am sorry to say that for the first problem to convert string to number, I am unable to find any command to convert &quot;column to text&quot;. I am explaining the fact again. I have selected the cells and click on the command &quot;convert to number&quot;. Then it converts the text to number. Then stop recording the macro. Now if I run the macro, it only selects those cells but does not convert the texts to numbers. However, as you mentioned that I have to select &quot;column to text&quot;; so far I am unable to find that command from excel. I am afraid that it might cause some errors. Can you please tell me that from where can I get that command. I am using excel 2007.</description>
		<content:encoded><![CDATA[<p>Thank you for your suggestion. I am able to modify the charts using macro in 2003 but not 2007.<br />
I am sorry to say that for the first problem to convert string to number, I am unable to find any command to convert &#8220;column to text&#8221;. I am explaining the fact again. I have selected the cells and click on the command &#8220;convert to number&#8221;. Then it converts the text to number. Then stop recording the macro. Now if I run the macro, it only selects those cells but does not convert the texts to numbers. However, as you mentioned that I have to select &#8220;column to text&#8221;; so far I am unable to find that command from excel. I am afraid that it might cause some errors. Can you please tell me that from where can I get that command. I am using excel 2007.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/comment-page-1/#comment-23655</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 09 Dec 2009 16:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/12/how-to-assign-a-macro-to-a-button-or-shape/#comment-23655</guid>
		<description>You did everything except text to columns? Text to Columns is the part that does the conversion.

About the chart, if you&#039;re using Excel 2007 to record your macro, you won&#039;t get much useful code. Microsoft rushed 2007 out the door before they had time to make everything work right. You can either find an earlier version of Excel for recording macros, or wait for Excel 2010 to come out in a half year.</description>
		<content:encoded><![CDATA[<p>You did everything except text to columns? Text to Columns is the part that does the conversion.</p>
<p>About the chart, if you&#8217;re using Excel 2007 to record your macro, you won&#8217;t get much useful code. Microsoft rushed 2007 out the door before they had time to make everything work right. You can either find an earlier version of Excel for recording macros, or wait for Excel 2010 to come out in a half year.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: razib</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/comment-page-1/#comment-23651</link>
		<dc:creator>razib</dc:creator>
		<pubDate>Wed, 09 Dec 2009 15:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/12/how-to-assign-a-macro-to-a-button-or-shape/#comment-23651</guid>
		<description>Thank you for the reply. I did the same except the last part, “then use Columns to Text to do the actual conversion” as you mentioned, but it didn’t work. Macro didn’t write anything in VBA and it is not executing the operation when I run the recorded macro. However I don’t understand the last part that you mentioned. What do you mean by use columns to text to get final conversion? I don’t get anything like that.Your suggestion will be appreciated.

For the chart what I want to do is that after making the bar chart I want to lebel the chart automatically using macro e.g., change the grid lines, lebel x &amp; y-coordinate (plant vs yr) ans so on. I tried but I am unable to do that. Can you please suggest?

Thank you again for your help.</description>
		<content:encoded><![CDATA[<p>Thank you for the reply. I did the same except the last part, “then use Columns to Text to do the actual conversion” as you mentioned, but it didn’t work. Macro didn’t write anything in VBA and it is not executing the operation when I run the recorded macro. However I don’t understand the last part that you mentioned. What do you mean by use columns to text to get final conversion? I don’t get anything like that.Your suggestion will be appreciated.</p>
<p>For the chart what I want to do is that after making the bar chart I want to lebel the chart automatically using macro e.g., change the grid lines, lebel x &amp; y-coordinate (plant vs yr) ans so on. I tried but I am unable to do that. Can you please suggest?</p>
<p>Thank you again for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/comment-page-1/#comment-23648</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 09 Dec 2009 13:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/12/how-to-assign-a-macro-to-a-button-or-shape/#comment-23648</guid>
		<description>Razib -

I don&#039;t understand the question about the chart and macro.

To get a macro that converts text to numbers, select the range then start the macro recorder, change the number format from text to a numerical format (if necessary), then use Columns to Text to do the actual conversion.</description>
		<content:encoded><![CDATA[<p>Razib -</p>
<p>I don&#8217;t understand the question about the chart and macro.</p>
<p>To get a macro that converts text to numbers, select the range then start the macro recorder, change the number format from text to a numerical format (if necessary), then use Columns to Text to do the actual conversion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Razib</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/comment-page-1/#comment-23647</link>
		<dc:creator>Razib</dc:creator>
		<pubDate>Wed, 09 Dec 2009 13:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/12/how-to-assign-a-macro-to-a-button-or-shape/#comment-23647</guid>
		<description>Hi I am trying to convert the text cell to number automatically using macro. But it&#039;s not working. In fact, I start as follows.
start recording &gt;&gt; select the cells&gt;&gt; right click on error to convert to number&gt;&gt; stop recording.
When I ask macro to run it again, it only selects the cells but not converts to number. Hence, I have to do it manually. Moreover, I checked VBA code as well; it doesn&#039;t write anything to convert to number.

Any help will be appreciable.</description>
		<content:encoded><![CDATA[<p>Hi I am trying to convert the text cell to number automatically using macro. But it&#8217;s not working. In fact, I start as follows.<br />
start recording &gt;&gt; select the cells&gt;&gt; right click on error to convert to number&gt;&gt; stop recording.<br />
When I ask macro to run it again, it only selects the cells but not converts to number. Hence, I have to do it manually. Moreover, I checked VBA code as well; it doesn&#8217;t write anything to convert to number.</p>
<p>Any help will be appreciable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Razib</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/comment-page-1/#comment-23645</link>
		<dc:creator>Razib</dc:creator>
		<pubDate>Wed, 09 Dec 2009 13:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/12/how-to-assign-a-macro-to-a-button-or-shape/#comment-23645</guid>
		<description>Hi I am facing problem to assign macro in bar chart. In fact I am drawing the chart using macro but I need to make some changes such that edit grid lines, lebelling axes, figure name etc. in the bar chart. I tried using assign macro by clicking right on the chart followed by assigning a name and record. After that I did the modifications and stop it. However, it is showing error. I will be grateful if anyone helps.</description>
		<content:encoded><![CDATA[<p>Hi I am facing problem to assign macro in bar chart. In fact I am drawing the chart using macro but I need to make some changes such that edit grid lines, lebelling axes, figure name etc. in the bar chart. I tried using assign macro by clicking right on the chart followed by assigning a name and record. After that I did the modifications and stop it. However, it is showing error. I will be grateful if anyone helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mei</title>
		<link>http://peltiertech.com/WordPress/how-to-assign-a-macro-to-a-button-or-shape/comment-page-1/#comment-12184</link>
		<dc:creator>Mei</dc:creator>
		<pubDate>Fri, 20 Mar 2009 03:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/12/how-to-assign-a-macro-to-a-button-or-shape/#comment-12184</guid>
		<description>Thanks Jon, will try it out and share any further problems if I encounter them.

Cheers.</description>
		<content:encoded><![CDATA[<p>Thanks Jon, will try it out and share any further problems if I encounter them.</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
