Hello All,
Can anyone shed any light on the attribute setting of a macro shortcut key:
NOTE: The above example code line can be seen after exporting vba module and opening resulting .bas file in a text editorPlease Login or Register to view this content.
[QUESTIONS]
1. What does the "\n14" in the above code mean? (is it like C code newline? if so why 14?)
2. Where can I find out details about these Attribute settings i.e. is this defined anywhere? I would like to try to understand them more.
[BACKGROUND]
I created and tried to use a shortcut key combo to run a simple macro (MyMacro) in XL2010.
The shortcut key combination Ctrl + Shift + S was assigned the macro header was updated with comments to indicate that the the shortcut was assigned.
Also checked that this shortcut key combination was not used for any other assignment.
When I tried to run the macro by shortcut keys it would not run. However, when I run the macro directly in VBE or in Excel Alt + F8 --> select MyMacro --> Run it would execute fine.
I then exported the MyMacro module --> modified .bas file attribute code line see 1. below in text editor by deleting the \n14 from the Attribute line so that it looked like 2. below --> saved file --> imported back into original workbook and then the shortcut keys worked OK!!
Ctrl + Shift + S shortcut doesn't work in case 1.
1.Ctrl + Shift + S shortcut now works in case 2!!Please Login or Register to view this content.
2.So I'd like to understand why it now works just by deleting the \n14 from the code line and the details of these Attribute settings for future reference.Please Login or Register to view this content.
Thanks
Nutty.
Bookmarks