Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Where is a macro shortcut key stored in a module?

Hi,

When I create a macro from Excel, I usually assign it a shortcut key.

But when I go in the module, I cannot see where this information is
kept in the code.

Also, I have a second question.

Each time I create a new macro to be stored in the personal.xls
workbook, a new module is created.

When I cut and copy the macro to another module, the shortcut key
assigned no longer works.

Is there a way to have all the macros I create in the personal.xls
workbook go in the same module?

Any help will be appreciated.
Thank you.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Where is a macro shortcut key stored in a module?

Christiane,

The macro key code is stored in the VBA Module, as an Attribute.
If you export the module, and view it in a text editor such as
NotePad, you'll see an Attribute statement with the shortcut key
code. Attribute statements are used by the VBA Editor and
compiler, but are not visible in the code window.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Christiane " wrote
in message ...
Hi,

When I create a macro from Excel, I usually assign it a

shortcut key.

But when I go in the module, I cannot see where this

information is
kept in the code.

Also, I have a second question.

Each time I create a new macro to be stored in the personal.xls
workbook, a new module is created.

When I cut and copy the macro to another module, the shortcut

key
assigned no longer works.

Is there a way to have all the macros I create in the

personal.xls
workbook go in the same module?

Any help will be appreciated.
Thank you.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Where is a macro shortcut key stored in a module?

Thanks Chip.

Is there a way I can change the shortcut key without having to redo th
macro

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Where is a macro shortcut key stored in a module?

Tools|macro|macros
Select your macro, then click options and you'll see a spot for specifying the
shortcut key.



"Christiane <" wrote:

Thanks Chip.

Is there a way I can change the shortcut key without having to redo the
macro?

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

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
Which macro module wal50 Excel Discussion (Misc queries) 4 March 17th 09 07:46 PM
hyperlink, macro, stored procedure? JICDB Excel Worksheet Functions 5 October 27th 07 12:18 AM
Can I create a command box fora macro to be stored on my toolbar Barb Reinhardt New Users to Excel 0 May 15th 07 01:24 AM
Can I create a command box fora macro to be stored on my toolbar Office Junior New Users to Excel 0 May 11th 07 12:01 PM
When open an old xls, an new macro is in a new module. Tom Ogilvy Excel Programming 0 February 13th 04 12:57 PM


All times are GMT +1. The time now is 05:09 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"