<?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: Run a Macro When Opening a Workbook</title>
	<atom:link href="http://excelhints.com/2009/04/16/run-a-macro-when-opening-a-workbook/feed/" rel="self" type="application/rss+xml" />
	<link>http://excelhints.com/2009/04/16/run-a-macro-when-opening-a-workbook/</link>
	<description>Excel Tips and Tricks for All Levels</description>
	<lastBuildDate>Thu, 29 Jul 2010 12:51:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: john</title>
		<link>http://excelhints.com/2009/04/16/run-a-macro-when-opening-a-workbook/comment-page-1/#comment-1074</link>
		<dc:creator>john</dc:creator>
		<pubDate>Tue, 30 Mar 2010 11:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=633#comment-1074</guid>
		<description>If you just put the following line before your for loop you should be fine:

sheets(&quot;sheet1&quot;).select

If you want to return to the original sheet you were on when you ran the macro, that will require additional code.

Good luck.</description>
		<content:encoded><![CDATA[<p>If you just put the following line before your for loop you should be fine:</p>
<p>sheets(&#8220;sheet1&#8243;).select</p>
<p>If you want to return to the original sheet you were on when you ran the macro, that will require additional code.</p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahil</title>
		<link>http://excelhints.com/2009/04/16/run-a-macro-when-opening-a-workbook/comment-page-1/#comment-1073</link>
		<dc:creator>Rahil</dc:creator>
		<pubDate>Tue, 30 Mar 2010 04:29:35 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=633#comment-1073</guid>
		<description>Hi All &amp; EH
I have a table with colums Serial number, other colum feilds and total, for which I  usually sort the rows according to their ascending order or Descending order, Doing which it changes the serial number of the rows in first column, 

To avoid this serial number issue I have written a macro using &#039;For&#039; loop, and had assign short cut key of combination with Ctrl+Key
and it work fine for sheet1.

Sub Mymacro()
     For x = 1 To 15
           Cells((x + 1), 1) = x
     Next x
End Sub

But the issue is; when I am in sheet2 and press the shortcut key,
The macro runs in the current sheet2 and prints the same output in sheet2 also,  

So therefore, can anybody help me out how to restrict the macro for a perticular sheet1 only,  though I run it from anysheet, that has to work for perticular sheet only.

&amp; I am really great thankful to all the Commentators who gives real informative information ...</description>
		<content:encoded><![CDATA[<p>Hi All &amp; EH<br />
I have a table with colums Serial number, other colum feilds and total, for which I  usually sort the rows according to their ascending order or Descending order, Doing which it changes the serial number of the rows in first column, </p>
<p>To avoid this serial number issue I have written a macro using &#8216;For&#8217; loop, and had assign short cut key of combination with Ctrl+Key<br />
and it work fine for sheet1.</p>
<p>Sub Mymacro()<br />
     For x = 1 To 15<br />
           Cells((x + 1), 1) = x<br />
     Next x<br />
End Sub</p>
<p>But the issue is; when I am in sheet2 and press the shortcut key,<br />
The macro runs in the current sheet2 and prints the same output in sheet2 also,  </p>
<p>So therefore, can anybody help me out how to restrict the macro for a perticular sheet1 only,  though I run it from anysheet, that has to work for perticular sheet only.</p>
<p>&amp; I am really great thankful to all the Commentators who gives real informative information &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://excelhints.com/2009/04/16/run-a-macro-when-opening-a-workbook/comment-page-1/#comment-781</link>
		<dc:creator>john</dc:creator>
		<pubDate>Thu, 11 Jun 2009 23:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=633#comment-781</guid>
		<description>Yes, you can put any actions you want to perform inside the auto-open macro to get your program started.</description>
		<content:encoded><![CDATA[<p>Yes, you can put any actions you want to perform inside the auto-open macro to get your program started.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Billy Gee</title>
		<link>http://excelhints.com/2009/04/16/run-a-macro-when-opening-a-workbook/comment-page-1/#comment-780</link>
		<dc:creator>Billy Gee</dc:creator>
		<pubDate>Thu, 11 Jun 2009 19:16:31 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=633#comment-780</guid>
		<description>Very clear and concise explanation.  I imagine you could run other procedures where you put the msgbox in your example, if you had to perform several tasks upon opening.</description>
		<content:encoded><![CDATA[<p>Very clear and concise explanation.  I imagine you could run other procedures where you put the msgbox in your example, if you had to perform several tasks upon opening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Affordable Housing</title>
		<link>http://excelhints.com/2009/04/16/run-a-macro-when-opening-a-workbook/comment-page-1/#comment-771</link>
		<dc:creator>Affordable Housing</dc:creator>
		<pubDate>Thu, 14 May 2009 15:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=633#comment-771</guid>
		<description>I would like to place a button in an Excel spreadsheet that will run a macro. I already know how to create a macro, and I intend to use the same workbook over &amp; over each month. I also need to know more about storing macro&#039;s in the worksheet. This macro will go to a specific directory, open a specific file, manipulate, copy &amp; paste that file into this spreadsheet, update the pivot table and populate other sheets throughout the entire workbook. I would like to place buttons on all the worksheets that contain data, around 12 sheets. These sheets then populate 3 reports that are due the first week of the month.</description>
		<content:encoded><![CDATA[<p>I would like to place a button in an Excel spreadsheet that will run a macro. I already know how to create a macro, and I intend to use the same workbook over &amp; over each month. I also need to know more about storing macro&#8217;s in the worksheet. This macro will go to a specific directory, open a specific file, manipulate, copy &amp; paste that file into this spreadsheet, update the pivot table and populate other sheets throughout the entire workbook. I would like to place buttons on all the worksheets that contain data, around 12 sheets. These sheets then populate 3 reports that are due the first week of the month.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
