Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Getting Shortcut Information ?

Using VBA I can assign a shortcut to a macro as follows:
Sub set_shortcut()
Application.MacroOptions Macro:="zt", HasShortcutKey:=True, ShortcutKey:="e"
End Sub

Help in VBA was valuable in setting the Options, but had no advice on
reading them back !

How to go backwards? I would like a function to return the shortcut key
given the macro name, for example

seeshort("zt") would return e

Thanks in advance for your help
--
jake
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Getting Shortcut Information ?

Macro Shortcuts are stored as hidden attributes of the macro. AFAIK can only
be found by exporting the module and finding the particular attribute in the
text file or view in a text editor.

Try Ivan Moala's addin
http://www.xcelfiles.com/GetShortCutKeys.html

Regards,
Peter T

"Jakobshavn Isbrae" wrote in
message ...
Using VBA I can assign a shortcut to a macro as follows:
Sub set_shortcut()
Application.MacroOptions Macro:="zt", HasShortcutKey:=True,

ShortcutKey:="e"
End Sub

Help in VBA was valuable in setting the Options, but had no advice on
reading them back !

How to go backwards? I would like a function to return the shortcut key
given the macro name, for example

seeshort("zt") would return e

Thanks in advance for your help
--
jake



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Getting Shortcut Information ?

Thank you Peter!!!


The export thing is just what I need. All the assigned shortcuts are
displayed in the .bas file.
--
jake


"Peter T" wrote:

Macro Shortcuts are stored as hidden attributes of the macro. AFAIK can only
be found by exporting the module and finding the particular attribute in the
text file or view in a text editor.

Try Ivan Moala's addin
http://www.xcelfiles.com/GetShortCutKeys.html

Regards,
Peter T

"Jakobshavn Isbrae" wrote in
message ...
Using VBA I can assign a shortcut to a macro as follows:
Sub set_shortcut()
Application.MacroOptions Macro:="zt", HasShortcutKey:=True,

ShortcutKey:="e"
End Sub

Help in VBA was valuable in setting the Options, but had no advice on
reading them back !

How to go backwards? I would like a function to return the shortcut key
given the macro name, for example

seeshort("zt") would return e

Thanks in advance for your help
--
jake




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
shortcut has change or move so this shortcut can not open bakerstreet Excel Worksheet Functions 2 April 2nd 10 01:21 PM
Pivot table cutting information of a part of the information ASR Excel Discussion (Misc queries) 1 November 5th 09 02:09 PM
Help!! using sheet 1 information to change information on sheet 2 I want to learn more Excel Worksheet Functions 2 September 30th 08 05:25 PM
Macro Shortcut Key Conflicts with Application Shortcut Keys Jordan Hotzel Excel Programming 0 October 13th 06 06:39 AM
Macro Shortcut Key Conflicts with Application Shortcut Keys Jordan Hotzel Excel Programming 0 October 13th 06 06:39 AM


All times are GMT +1. The time now is 04:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"