<?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: List Userform Hotkeys</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2008/07/22/list-userform-hotkeys/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2008/07/22/list-userform-hotkeys/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/07/22/list-userform-hotkeys/#comment-40648</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Fri, 14 Aug 2009 18:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1869#comment-40648</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; ListHotKeys(uf &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; UserForm)&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; ctl &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Control&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; aKeys() &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; sKey &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;, sCap &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; i &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Long&lt;/span&gt;, j &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Long&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Each&lt;/span&gt; ctl &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; uf.Controls&lt;br&gt;
&#160; &#160; &#160; &#160; sKey = &lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;Not all controls have this property&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160;&lt;span class=&quot;kw1&quot;&gt;On&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Error&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Resume&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; sKey = ctl.Accelerator&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;On&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Error&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;GoTo&lt;/span&gt; 0&lt;br&gt;
&#160; &#160; &#160; &#160;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; Len(sKey) &gt; 0 &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; i = i + 1&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;ReDim&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Preserve&lt;/span&gt; aKeys(1 &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; 2, 1 &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; i)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; aKeys(1, i) = sKey&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; aKeys(2, i) = ctl.Caption&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; ctl&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; i = &lt;span class=&quot;kw1&quot;&gt;LBound&lt;/span&gt;(aKeys, 2) &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;UBound&lt;/span&gt;(aKeys, 2) - 1&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; j = i + 1 &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;UBound&lt;/span&gt;(aKeys, 2)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; UCase(aKeys(1, i)) &gt; UCase(aKeys(1, j)) &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; sKey = aKeys(1, i)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; sCap = aKeys(2, i)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; aKeys(1, i) = aKeys(1, j)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; aKeys(2, i) = aKeys(2, j)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; aKeys(1, j) = sKey&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; aKeys(2, j) = sCap&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; j&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; i&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; i = 1 &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;UBound&lt;/span&gt;(aKeys, 2)&lt;br&gt;
&#160; &#160; &#160; &#160; Debug.&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; aKeys(1, i), aKeys(2, i)&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; i&lt;br&gt;
&#160; &#160; &#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> ListHotKeys(uf <span class="kw1">As</span> UserForm)<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">Dim</span> ctl <span class="kw1">As</span> <span class="kw1">Control</span><br />
&nbsp; &nbsp; <span class="kw1">Dim</span> aKeys() <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; &nbsp; <span class="kw1">Dim</span> sKey <span class="kw1">As</span> <span class="kw1">String</span>, sCap <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; &nbsp; <span class="kw1">Dim</span> i <span class="kw1">As</span> <span class="kw1">Long</span>, j <span class="kw1">As</span> <span class="kw1">Long</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">For</span> <span class="kw1">Each</span> ctl <span class="kw1">In</span> uf.Controls<br />
&nbsp; &nbsp; &nbsp; &nbsp; sKey = <span class="st0">&#8220;&#8221;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8216;Not all controls have this property<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">On</span> <span class="kw1">Error</span> <span class="kw1">Resume</span> <span class="kw1">Next</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sKey = ctl.Accelerator<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">On</span> <span class="kw1">Error</span> <span class="kw1">GoTo</span> 0<br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> Len(sKey) &gt; 0 <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i = i + 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">ReDim</span> <span class="kw1">Preserve</span> aKeys(1 <span class="kw1">To</span> 2, 1 <span class="kw1">To</span> i)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aKeys(1, i) = sKey<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aKeys(2, i) = ctl.Caption<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; <span class="kw1">Next</span> ctl<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">For</span> i = <span class="kw1">LBound</span>(aKeys, 2) <span class="kw1">To</span> <span class="kw1">UBound</span>(aKeys, 2) &#8211; 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">For</span> j = i + 1 <span class="kw1">To</span> <span class="kw1">UBound</span>(aKeys, 2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> UCase(aKeys(1, i)) &gt; UCase(aKeys(1, j)) <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sKey = aKeys(1, i)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sCap = aKeys(2, i)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aKeys(1, i) = aKeys(1, j)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aKeys(2, i) = aKeys(2, j)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aKeys(1, j) = sKey<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aKeys(2, j) = sCap<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Next</span> j<br />
&nbsp; &nbsp; <span class="kw1">Next</span> i<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">For</span> i = 1 <span class="kw1">To</span> <span class="kw1">UBound</span>(aKeys, 2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; Debug.<span class="kw1">Print</span> aKeys(1, i), aKeys(2, i)<br />
&nbsp; &nbsp; <span class="kw1">Next</span> i<br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: yRadunchev</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/07/22/list-userform-hotkeys/#comment-33972</link>
		<dc:creator>yRadunchev</dc:creator>
		<pubDate>Fri, 01 Aug 2008 07:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1869#comment-33972</guid>
		<description>&lt;p&gt;Found on some Japanese VBA forum and a little bit re-written:&lt;/p&gt;
&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; GetShortCutKeys()&lt;br&gt;
&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; DefPath &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; FNo &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Integer&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; LineBuf &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; i &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Integer&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; buf() &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; bufName &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; bufKeyName &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; vbc &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Object&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Const&lt;/span&gt; AT1 &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&quot;Attribute &quot;&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Const&lt;/span&gt; AT2 &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&quot;VB_Invoke_Func =&quot;&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Const&lt;/span&gt; TMPF &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&quot;Temp1.bas&quot;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
DefPath = ThisWorkbook.Path &amp; &lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;br&gt;
&#160;&lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt; ThisWorkbook.VBProject&lt;br&gt;
&#160;&lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Each&lt;/span&gt; vbc &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; .VBComponents&lt;br&gt;
&#160;.VBComponents(vbc.Name).Export Filename:=DefPath &amp; TMPF&lt;br&gt;
&#160;FNo = FreeFile()&lt;br&gt;
&#160;&lt;span class=&quot;kw1&quot;&gt;Open&lt;/span&gt; DefPath &amp; TMPF &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Input&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; #FNo&lt;br&gt;
&#160;&lt;span class=&quot;kw1&quot;&gt;While&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Not&lt;/span&gt; EOF(FNo)&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Line&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Input&lt;/span&gt; #FNo, LineBuf&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; InStr(1, LineBuf, &lt;span class=&quot;st0&quot;&gt;&quot;Sub&quot;&lt;/span&gt;, vbTextCompare) = 1 &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160;bufName = Mid$(LineBuf, InStr(LineBuf, &lt;span class=&quot;st0&quot;&gt;&quot;Sub&quot;&lt;/span&gt;) + 4)&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; InStr(LineBuf, AT1) = 1 &lt;span class=&quot;kw1&quot;&gt;And&lt;/span&gt; InStr(LineBuf, AT2) &gt; 0 &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160;&lt;span class=&quot;kw1&quot;&gt;ReDim&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Preserve&lt;/span&gt; buf(i)&lt;br&gt;
&#160; &#160;bufKeyName = &lt;span class=&quot;st0&quot;&gt;&quot; : Ctrl + &quot;&lt;/span&gt; &amp; Mid$(LineBuf, InStrRev(LineBuf, &lt;span class=&quot;st0&quot;&gt;&quot;=&quot;&lt;/span&gt;) + 3, 1)&lt;br&gt;
&#160; &#160;buf(i) = bufName &amp; bufKeyName&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160;Debug.&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; bufName; bufKeyName&lt;br&gt;
&#160; &#160;i = i + 1&lt;br&gt;
&#160; &#160;bufName = &lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; LineBuf = &lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;br&gt;
&#160;Wend&lt;br&gt;
&#160;&lt;span class=&quot;kw1&quot;&gt;Close&lt;/span&gt; #FNo&lt;br&gt;
&#160;Kill DefPath &amp; TMPF&lt;br&gt;
&#160;&lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt;&lt;br&gt;
&#160;&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt;&lt;br&gt;
&#160;MsgBox Join(buf, vbCrLf)&lt;br&gt;
&#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[<p>Found on some Japanese VBA forum and a little bit re-written:</p>
<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> GetShortCutKeys()</p>
<p><span class="kw1">Dim</span> DefPath <span class="kw1">As</span> <span class="kw1">String</span><br />
<span class="kw1">Dim</span> FNo <span class="kw1">As</span> <span class="kw1">Integer</span><br />
<span class="kw1">Dim</span> LineBuf <span class="kw1">As</span> <span class="kw1">String</span><br />
<span class="kw1">Dim</span> i <span class="kw1">As</span> <span class="kw1">Integer</span><br />
<span class="kw1">Dim</span> buf() <span class="kw1">As</span> <span class="kw1">String</span><br />
<span class="kw1">Dim</span> bufName <span class="kw1">As</span> <span class="kw1">String</span><br />
<span class="kw1">Dim</span> bufKeyName <span class="kw1">As</span> <span class="kw1">String</span><br />
<span class="kw1">Dim</span> vbc <span class="kw1">As</span> <span class="kw1">Object</span><br />
<span class="kw1">Const</span> AT1 <span class="kw1">As</span> <span class="kw1">String</span> = <span class="st0">&#8220;Attribute &#8220;</span><br />
<span class="kw1">Const</span> AT2 <span class="kw1">As</span> <span class="kw1">String</span> = <span class="st0">&#8220;VB_Invoke_Func =&#8221;</span><br />
<span class="kw1">Const</span> TMPF <span class="kw1">As</span> <span class="kw1">String</span> = <span class="st0">&#8220;Temp1.bas&#8221;</span></p>
<p>DefPath = ThisWorkbook.Path &amp;amp; <span class="st0">&#8220;&#8221;</span><br />
&nbsp;<span class="kw1">With</span> ThisWorkbook.VBProject<br />
&nbsp;<span class="kw1">For</span> <span class="kw1">Each</span> vbc <span class="kw1">In</span> .VBComponents<br />
&nbsp;.VBComponents(vbc.Name).Export Filename:=DefPath &amp;amp; TMPF<br />
&nbsp;FNo = FreeFile()<br />
&nbsp;<span class="kw1">Open</span> DefPath &amp;amp; TMPF <span class="kw1">For</span> <span class="kw1">Input</span> <span class="kw1">As</span> #FNo<br />
&nbsp;<span class="kw1">While</span> <span class="kw1">Not</span> EOF(FNo)<br />
&nbsp; <span class="kw1">Line</span> <span class="kw1">Input</span> #FNo, LineBuf<br />
&nbsp; <span class="kw1">If</span> InStr(1, LineBuf, <span class="st0">&#8220;Sub&#8221;</span>, vbTextCompare) = 1 <span class="kw1">Then</span><br />
&nbsp; &nbsp;bufName = Mid$(LineBuf, InStr(LineBuf, <span class="st0">&#8220;Sub&#8221;</span>) + 4)<br />
&nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; <span class="kw1">If</span> InStr(LineBuf, AT1) = 1 <span class="kw1">And</span> InStr(LineBuf, AT2) &amp;gt; 0 <span class="kw1">Then</span><br />
&nbsp; &nbsp;<span class="kw1">ReDim</span> <span class="kw1">Preserve</span> buf(i)<br />
&nbsp; &nbsp;bufKeyName = <span class="st0">&#8221; : Ctrl + &#8220;</span> &amp;amp; Mid$(LineBuf, InStrRev(LineBuf, <span class="st0">&#8220;=&#8221;</span>) + 3, 1)<br />
&nbsp; &nbsp;buf(i) = bufName &amp;amp; bufKeyName<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;Debug.<span class="kw1">Print</span> bufName; bufKeyName<br />
&nbsp; &nbsp;i = i + 1<br />
&nbsp; &nbsp;bufName = <span class="st0">&#8220;&#8221;</span><br />
&nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; LineBuf = <span class="st0">&#8220;&#8221;</span><br />
&nbsp;Wend<br />
&nbsp;<span class="kw1">Close</span> #FNo<br />
&nbsp;Kill DefPath &amp;amp; TMPF<br />
&nbsp;<span class="kw1">Next</span><br />
&nbsp;<span class="kw1">End</span> <span class="kw1">With</span><br />
&nbsp;MsgBox Join(buf, vbCrLf)<br />
&nbsp;<br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/07/22/list-userform-hotkeys/#comment-33823</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Thu, 24 Jul 2008 15:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1869#comment-33823</guid>
		<description>&lt;p&gt;The download link on Ivan F&#039;s website (http://www.xcelfiles.com/GetShortCutKeys.html) doesn&#039;t seem to be working.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The download link on Ivan F&#8217;s website (<a href="http://www.xcelfiles.com/GetShortCutKeys.html" rel="nofollow">http://www.xcelfiles.com/GetShortCutKeys.html</a>) doesn&#8217;t seem to be working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Murphy</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/07/22/list-userform-hotkeys/#comment-33801</link>
		<dc:creator>Simon Murphy</dc:creator>
		<pubDate>Wed, 23 Jul 2008 18:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1869#comment-33801</guid>
		<description>&lt;p&gt;Peter&lt;br&gt;
Shortcut keys are a hidden property of a procedure. You can see them if you export the module and then open it in a text editor. Ivan may have (/will have) a more refined way.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Peter<br />
Shortcut keys are a hidden property of a procedure. You can see them if you export the module and then open it in a text editor. Ivan may have (/will have) a more refined way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/07/22/list-userform-hotkeys/#comment-33797</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Wed, 23 Jul 2008 15:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1869#comment-33797</guid>
		<description>&lt;p&gt;Peter,&lt;/p&gt;
&lt;p&gt;There is an addin from Ivan F - Called List Shortcut keys - check out his website&lt;/p&gt;
&lt;p&gt;Sam&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>There is an addin from Ivan F &#8211; Called List Shortcut keys &#8211; check out his website</p>
<p>Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/07/22/list-userform-hotkeys/#comment-33793</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 23 Jul 2008 13:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1869#comment-33793</guid>
		<description>&lt;p&gt;Nice. You need a second column for the caption of the accelerated control.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice. You need a second column for the caption of the accelerated control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Carr</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/07/22/list-userform-hotkeys/#comment-33780</link>
		<dc:creator>Peter Carr</dc:creator>
		<pubDate>Wed, 23 Jul 2008 02:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1869#comment-33780</guid>
		<description>&lt;p&gt;Hi.  I have often wondered if similar code can be written to detect what keyboard shortcuts are in use by currently open macros.  Any thoughts?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi.  I have often wondered if similar code can be written to detect what keyboard shortcuts are in use by currently open macros.  Any thoughts?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

