Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default shortcut keys in VBA

What is the easiest way to display the shortcut keys assigned to subs within
a module from VBA?
--
Gary's Student
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default shortcut keys in VBA

I would add a debug.print statements to
listfunctions and sub (see buildtoc.htm) look for "application.onkey"
and include the workbook and module name in front
remember that VBA is case sensitive.

Dependent upon the shortcut being on the same line, but presume you
are documenting your own code.

Since you can turn shortcuts on and off and have several within a
module, it wouldn't work well to add a column to show a shortcut
but the debug should work okay and you can paste that into something else.

http://www.mvps.org/dmcritchie/excel/buildtoc.htm
http://www.mvps.org/dmcritchie/excel.../listfsubs.txt
---HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htmSearch Page: http://www.mvps.org/dmcritchie/excel/search.htm "Gary''s Student"
wrote in message ...
What is the easiest way to display the shortcut keys assigned to subs within
a module from VBA?
--
Gary's Student



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default shortcut keys in VBA

Thank you very much David. I received a workbook with lots of sub and very
poor documentation on the shortcuts. I copied all the sub onto a worksheet
as text and looked for "application.onkey". Sure enough, I found them all!
This has saved me lots of time.

Thanks again
--
Gary''s Student


"David McRitchie" wrote:

I would add a debug.print statements to
listfunctions and sub (see buildtoc.htm) look for "application.onkey"
and include the workbook and module name in front
remember that VBA is case sensitive.

Dependent upon the shortcut being on the same line, but presume you
are documenting your own code.

Since you can turn shortcuts on and off and have several within a
module, it wouldn't work well to add a column to show a shortcut
but the debug should work okay and you can paste that into something else.

http://www.mvps.org/dmcritchie/excel/buildtoc.htm
http://www.mvps.org/dmcritchie/excel.../listfsubs.txt
---HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htmSearch Page: http://www.mvps.org/dmcritchie/excel/search.htm "Gary''s Student"
wrote in message ...
What is the easiest way to display the shortcut keys assigned to subs within
a module from VBA?
--
Gary's Student




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default shortcut keys in VBA

You're welcome, guess there was only one module involved, perhaps
even only one subroutine, so a lot easier than coding. .

"Gary''s Student" wrote...
Thank you very much David. I received a workbook with lots of sub and very
poor documentation on the shortcuts. I copied all the sub onto a worksheet
as text and looked for "application.onkey". Sure enough, I found them all!
This has saved me lots of time.



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 Keys BACH Excel Discussion (Misc queries) 4 October 24th 08 01:09 AM
Shortcut Keys ? Jakobshavn Isbrae Excel Discussion (Misc queries) 1 March 20th 07 06:44 PM
shortcut keys tomruffner Excel Discussion (Misc queries) 2 February 28th 07 02:20 PM
Shortcut Keys John Whelan Excel Programming 4 April 10th 04 03:54 PM
Shortcut Keys Jase Excel Programming 0 September 11th 03 06:04 AM


All times are GMT +1. The time now is 06:45 AM.

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"