Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA - Macro & ShortcutKey Copy

Is it possible, through VBA, to obtain (asign to string-variable), th
shortcut key, which belongs to(runs) some macro. I hav
found(VBA-ObjectBrowser Help), that the "ShortcutKey" Propert
belongs to Name Object but "name deifined as a custom Microsoft Exce
4.0 macro command". But in the workbook which, I know for sure, contai
macro with shortcut key asignment, there is no such "name deifined as
custom macro command", there are only regular Names, ie no Name wit
"MacroType" Property etc ... I have check this fact, through VBA, b
asigning to Object variable, collection of all Workbook.Names (usin
loop), and then check in "Locals Window" for properties.
Wider context: I have made procedure which make copy of som
Workbook(WbOrig) to BackUpWorkbook(WbBck), including also all o
VBProject.Components, .References, etc ... Everything works fine
except that, the WbBck doesn't have the "shortcut key functionality
for running macros, because the "shortcut key asignment " isn'
copied.
System: Win98 - Excel 2000
Thank You in advance. Regards. Mirom

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Excel VBA - Macro & ShortcutKey Copy

But in the workbook which, I know for sure, contain macro with shortcut
key asignment

How did you assign a shortcut key to the macro?

--
Jim Rech
Excel MVP


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
excel macro copy Yvonne New Users to Excel 2 June 15th 08 05:17 PM
Macro copy picture from web to excel Philippe B. Excel Discussion (Misc queries) 0 April 3rd 08 08:05 AM
shortcutkey F9 help me please i´m lost Excel Worksheet Functions 3 February 22nd 06 05:04 PM
ShortcutKey assigning in VBA Jos Vens Excel Programming 4 November 13th 03 03:25 AM


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