<?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: Macro Shortcut Keys</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/</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: Excel 2007 Raccourcis macro</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/#comment-65912</link>
		<dc:creator>Excel 2007 Raccourcis macro</dc:creator>
		<pubDate>Tue, 30 Aug 2011 16:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1577#comment-65912</guid>
		<description>&lt;p&gt;[...] : Raccourcis macro         Bonjour,  Voici un lien (en anglais) sur le sujet :  Daily Dose of Excel » Blog Archive » Macro Shortcut Keys  En réponse a tes questions :  1) tu ne peux pas le faire a partir de VBE, tu dois sauvegarder ton [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] : Raccourcis macro         Bonjour,  Voici un lien (en anglais) sur le sujet :  Daily Dose of Excel » Blog Archive » Macro Shortcut Keys  En réponse a tes questions :  1) tu ne peux pas le faire a partir de VBE, tu dois sauvegarder ton [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ward Christensen</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/#comment-65359</link>
		<dc:creator>Ward Christensen</dc:creator>
		<pubDate>Mon, 01 Aug 2011 06:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1577#comment-65359</guid>
		<description>&lt;p&gt;You can use an external macro tool such as insight software&#039;s macro express. &lt;/p&gt;
&lt;p&gt;This can say &quot;this key (whatever) does (these actions) &lt;/p&gt;
&lt;p&gt;Then you can say &quot;but only if the window on top is Excel&quot;. &lt;/p&gt;
&lt;p&gt;Not free, but one of the programs I&#039;m more than happy to pay for . . .&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You can use an external macro tool such as insight software&#8217;s macro express. </p>
<p>This can say &#8220;this key (whatever) does (these actions) </p>
<p>Then you can say &#8220;but only if the window on top is Excel&#8221;. </p>
<p>Not free, but one of the programs I&#8217;m more than happy to pay for . . .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Treloar</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/#comment-65299</link>
		<dc:creator>Bill Treloar</dc:creator>
		<pubDate>Wed, 27 Jul 2011 15:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1577#comment-65299</guid>
		<description>&lt;p&gt;How can I reassign macro shortcut keys to Alt-key combinations instead of Ctrl-key combinations without using VB?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>How can I reassign macro shortcut keys to Alt-key combinations instead of Ctrl-key combinations without using VB?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Brown</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/#comment-64972</link>
		<dc:creator>Andy Brown</dc:creator>
		<pubDate>Fri, 01 Jul 2011 09:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1577#comment-64972</guid>
		<description>&lt;p&gt;Wow!  I was looking for this because I was trying to share a new blog I&#039;d written about assigning short-cut keys in Excel, and discovered something I didn&#039;t know about Excel VBA (doesn&#039;t happen too often these days, as I get older). &lt;/p&gt;
&lt;p&gt;The blog, if it&#039;s helpful, is at &lt;a href=&quot;http://www.wiseowl.co.uk/blog/s139/short-cut-key-macros-excel.htm&quot; rel=&quot;nofollow&quot;&gt;http://www.wiseowl.co.uk/blog/s139/short-cut-key-macros-excel.htm&lt;/a&gt; .&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Wow!  I was looking for this because I was trying to share a new blog I&#8217;d written about assigning short-cut keys in Excel, and discovered something I didn&#8217;t know about Excel VBA (doesn&#8217;t happen too often these days, as I get older). </p>
<p>The blog, if it&#8217;s helpful, is at <a href="http://www.wiseowl.co.uk/blog/s139/short-cut-key-macros-excel.htm" rel="nofollow">http://www.wiseowl.co.uk/blog/s139/short-cut-key-macros-excel.htm</a> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ward Christensen</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/#comment-45075</link>
		<dc:creator>Ward Christensen</dc:creator>
		<pubDate>Mon, 05 Apr 2010 17:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1577#comment-45075</guid>
		<description>&lt;p&gt;Very helpful!!&lt;/p&gt;
&lt;p&gt;I -- unwittingly -- or accidentally -- Assigned ^I, and suddenly &quot;Italics this&quot; became &lt;a&gt; &lt;/a&gt;&lt;/p&gt;
&lt;a&gt;
&lt;p&gt;Thanks so much!!!&lt;/p&gt;&lt;/a&gt;
&lt;p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very helpful!!</p>
<p>I &#8212; unwittingly &#8212; or accidentally &#8212; Assigned ^I, and suddenly &#8220;Italics this&#8221; became <a> </a></p>
<p><a></p>
<p>Thanks so much!!!</p>
<p></a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/#comment-38560</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 19 Mar 2009 13:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1577#comment-38560</guid>
		<description>&lt;p&gt;Matt -&lt;/p&gt;
&lt;p&gt;Use the &#039;Private&#039; keyword:&lt;/p&gt;
&lt;p&gt;Private Sub MyMacro()&lt;/p&gt;
&lt;p&gt;and assign the shortcut to this.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Matt -</p>
<p>Use the &#8216;Private&#8217; keyword:</p>
<p>Private Sub MyMacro()</p>
<p>and assign the shortcut to this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mat</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/#comment-38535</link>
		<dc:creator>Mat</dc:creator>
		<pubDate>Wed, 18 Mar 2009 12:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1577#comment-38535</guid>
		<description>&lt;p&gt;Can shortcuts be added to a function or only to a sub?&lt;/p&gt;
&lt;p&gt;I&#039;m wanting to assign it to something that isn&#039;t visible in the VB Macro window&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Can shortcuts be added to a function or only to a sub?</p>
<p>I&#8217;m wanting to assign it to something that isn&#8217;t visible in the VB Macro window</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Mulroney</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/#comment-34939</link>
		<dc:creator>David Mulroney</dc:creator>
		<pubDate>Thu, 02 Oct 2008 22:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1577#comment-34939</guid>
		<description>&lt;p&gt;I have had a problem with my macros linked to shortcut when I tried to consolidate my macros that I have recorded over time into one single module.&lt;/p&gt;
&lt;p&gt;The macros linked to shortcuts would not execute when the shortcut was run, however they appeared to be in order in VBA. They even had that &quot;&#039; Keyboard Shortcut: Ctrl+Shift+...&quot;&lt;/p&gt;
&lt;p&gt;The problem is that the hidden coding that designates the shortcut key is only available on export, so the solution is to export all your macros, assuming they are module1, module2 &amp; module3. Create the My_Std_Macros module (or what ever you wish to call it) and export it - yes it&#039;s blank, but will create the neccessary .bas file with the first line. &lt;/p&gt;
&lt;p&gt;This will create 4 .bas files that can then be edited in notepad. Simply copy all lines BUT NOT the first line (this is important to exclude the first line as it defines the name of the module and I hate to think what would happen if you had multiple names in the same module) from module1, 2 &amp; 3 into the My_Std_Macros, save it and close the files. No particular order is necessary.&lt;/p&gt;
&lt;p&gt;Remove Module1, 2, 3 &amp; My_Std_Macro without exporting, then import only the new My_Std_Macro and all your macros will come across with shortcut keys.&lt;/p&gt;
&lt;p&gt;You can add shortcuts in the same manner, prior to closing &amp; saving the My_Std_Macro.bas, you can add the command lines as follows, assuming the Sub is called &quot;Hide_Gridlines&quot; (no prize for guess what this macro does ... lol)  linked to Ctrl+Shift+G&lt;br&gt;
Attribute Hide_Gridlines.VB_ProcData.VB_Invoke_Func = &quot;G
14? as follows:&lt;/p&gt;
&lt;p&gt;Sub Hide_Gridlines()&lt;br&gt;
Attribute Hide_Gridlines.VB_Description = &quot;Hides the Gridlines

Macro recorded 09/12/2008 by David Mulroney&quot;&lt;br&gt;
Attribute Hide_Gridlines.VB_ProcData.VB_Invoke_Func = &quot;G
14?&lt;/p&gt;
&lt;p&gt;Note it comes after the description.&lt;/p&gt;
&lt;p&gt;The expression&lt;br&gt;
&#039; Keyboard Shortcut: Ctrl+Shift+G&lt;br&gt;
can be added within the sub but it only for your purposes.&lt;/p&gt;
&lt;p&gt;If you wish to link it to ... say Ctrl+j, then it would be = &quot;j
14? (i.e. lower case means no shift, upper case means shift. The &quot;
14? part is constant.&lt;/p&gt;
&lt;p&gt;I hope this helps :)&lt;/p&gt;
&lt;p&gt;Good luck and happy programming&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have had a problem with my macros linked to shortcut when I tried to consolidate my macros that I have recorded over time into one single module.</p>
<p>The macros linked to shortcuts would not execute when the shortcut was run, however they appeared to be in order in VBA. They even had that &#8220;&#8216; Keyboard Shortcut: Ctrl+Shift+&#8230;&#8221;</p>
<p>The problem is that the hidden coding that designates the shortcut key is only available on export, so the solution is to export all your macros, assuming they are module1, module2 &amp; module3. Create the My_Std_Macros module (or what ever you wish to call it) and export it &#8211; yes it&#8217;s blank, but will create the neccessary .bas file with the first line. </p>
<p>This will create 4 .bas files that can then be edited in notepad. Simply copy all lines BUT NOT the first line (this is important to exclude the first line as it defines the name of the module and I hate to think what would happen if you had multiple names in the same module) from module1, 2 &amp; 3 into the My_Std_Macros, save it and close the files. No particular order is necessary.</p>
<p>Remove Module1, 2, 3 &amp; My_Std_Macro without exporting, then import only the new My_Std_Macro and all your macros will come across with shortcut keys.</p>
<p>You can add shortcuts in the same manner, prior to closing &amp; saving the My_Std_Macro.bas, you can add the command lines as follows, assuming the Sub is called &#8220;Hide_Gridlines&#8221; (no prize for guess what this macro does &#8230; lol)  linked to Ctrl+Shift+G<br />
Attribute Hide_Gridlines.VB_ProcData.VB_Invoke_Func = &#8220;G<br />
14? as follows:</p>
<p>Sub Hide_Gridlines()<br />
Attribute Hide_Gridlines.VB_Description = &#8220;Hides the Gridlines</p>
<p>Macro recorded 09/12/2008 by David Mulroney&#8221;<br />
Attribute Hide_Gridlines.VB_ProcData.VB_Invoke_Func = &#8220;G<br />
14?</p>
<p>Note it comes after the description.</p>
<p>The expression<br />
&#8216; Keyboard Shortcut: Ctrl+Shift+G<br />
can be added within the sub but it only for your purposes.</p>
<p>If you wish to link it to &#8230; say Ctrl+j, then it would be = &#8220;j<br />
14? (i.e. lower case means no shift, upper case means shift. The &#8221;<br />
14? part is constant.</p>
<p>I hope this helps <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Good luck and happy programming</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wilson</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/#comment-34633</link>
		<dc:creator>Wilson</dc:creator>
		<pubDate>Wed, 03 Sep 2008 10:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1577#comment-34633</guid>
		<description>&lt;p&gt;Alex J,&lt;/p&gt;
&lt;p&gt;Regarding your question &quot;... Can anyone explain what happens when two open workbooks have macros with the same shortcut key? It looks like only one of the two will always run, but Iam not sure which one, and why...&quot;&lt;/p&gt;
&lt;p&gt;This answer might come a bit too late but on my system (Win XP Excel 2002) if two open workbooks have macros with the same shortcut key, the macro in the workbook that gets opened first will be executed. For example, if you have Workbooks A and B and you open Workbook A first, the macro in Workbook A will be run when you press the shortcut key. I&#039;m guessing the reason is Excel only remembers the shortcut key in the first opened workbook, same shortcut key in the workbooks opened thereafter is ignored.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Alex J,</p>
<p>Regarding your question &#8220;&#8230; Can anyone explain what happens when two open workbooks have macros with the same shortcut key? It looks like only one of the two will always run, but Iam not sure which one, and why&#8230;&#8221;</p>
<p>This answer might come a bit too late but on my system (Win XP Excel 2002) if two open workbooks have macros with the same shortcut key, the macro in the workbook that gets opened first will be executed. For example, if you have Workbooks A and B and you open Workbook A first, the macro in Workbook A will be run when you press the shortcut key. I&#8217;m guessing the reason is Excel only remembers the shortcut key in the first opened workbook, same shortcut key in the workbooks opened thereafter is ignored.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/05/macro-shortcut-keys/#comment-29044</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Thu, 29 Nov 2007 18:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1577#comment-29044</guid>
		<description>&lt;p&gt;Alex, download the add-in I refer to.&lt;br&gt;
You will see which key&#039;s got multiple functions.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.xcelfiles.com/GetShortCutKeys.html&quot; rel=&quot;nofollow&quot;&gt;http://www.xcelfiles.com/GetShortCutKeys.html&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Alex, download the add-in I refer to.<br />
You will see which key&#8217;s got multiple functions.</p>
<p><a href="http://www.xcelfiles.com/GetShortCutKeys.html" rel="nofollow">http://www.xcelfiles.com/GetShortCutKeys.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

