Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Usually, once I set a property like a cell's format:
Range("A1").NumberFormat = "@" I don't need to "remember" it. I can just read it back with: Dim s as String s = Range("A1").NumberFormat However, once I set a macro's shortcutkey: Application.MacroOptions Macro:="Macro1", ShortcutKey:= "e" The correct method to retrieve the property eludes me. I am looking for the equivalent of: s = MacroOptions.Macro("Macro1").ShortcutKey (hopefully macros are part of the object model with read/write properties of their own) -- Gary''s Student - gsnu200757 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Nov 17, 4:05 pm, Gary''s Student
wrote: Usually, once I set a property like a cell's format: Range("A1").NumberFormat = "@" I don't need to "remember" it. I can just read it back with: Dim s as String s = Range("A1").NumberFormat However, once I set a macro's shortcutkey: Application.MacroOptions Macro:="Macro1", ShortcutKey:= "e" The correct method to retrieve the property eludes me. I am looking for the equivalent of: s = MacroOptions.Macro("Macro1").ShortcutKey (hopefully macros are part of the object model with read/write properties of their own) -- Gary''s Student - gsnu200757 Hello Gary, The setting of the shortcut key, or hot key as is sometimes called, is actually performed by a couple of API calls. So, while you can set the key, Excel does not provide any methods to read these settings back. You write an API macro to do this, if really need it. Sincerely, Leith Ross |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Still same way as I suggested to you last time :-)
http://tinyurl.com/2qxjmx Regards, Peter T "Gary''s Student" wrote in message ... Usually, once I set a property like a cell's format: Range("A1").NumberFormat = "@" I don't need to "remember" it. I can just read it back with: Dim s as String s = Range("A1").NumberFormat However, once I set a macro's shortcutkey: Application.MacroOptions Macro:="Macro1", ShortcutKey:= "e" The correct method to retrieve the property eludes me. I am looking for the equivalent of: s = MacroOptions.Macro("Macro1").ShortcutKey (hopefully macros are part of the object model with read/write properties of their own) -- Gary''s Student - gsnu200757 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I have a read only xl file, I need it to be read and write | Excel Discussion (Misc queries) | |||
How can a file be converted from Read-Only to Read/Write | Excel Discussion (Misc queries) | |||
Write value to an Excel VBA variable by reading Access DB? | Excel Programming | |||
OLAP write back via formulas (functions), not read only pivot tab | Excel Worksheet Functions | |||
How to read a SQL Table into Excel change the data and write back into SQL | Excel Programming |