ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to add hot-key to .xla file in VBA Editor (https://www.excelbanter.com/excel-discussion-misc-queries/97047-how-add-hot-key-xla-file-vba-editor.html)

Dennis

How to add hot-key to .xla file in VBA Editor
 
Using 2003

I would like to add a keyboard short-cut to a macro in an .xla file.

Of course, I tried it in Excel but .xla macros do not show up in the
dropdown box.

Is there a better/shorter way than saving the .xla file to .xls file
applying the shortcut then re-saving as an .xla file etc.

Thanks

Dennis

Gord Dibben

How to add hot-key to .xla file in VBA Editor
 
In Excel go to ToolsMacroMacros and just type in the name of the macro.

You can then hit "Options" and give it a shortcut key.

For added info on your last question, macros in add-ins can be edited in the VBE
directly.

And you don't have to save the *.xla file to *.xls file then re-save as *.xla
if you needed to see/edit data on worksheets or add sheets.

In VBE select your workbook/project the expand and select Thisworkbook and
ViewProperties Window.

Change "IsAddin" to False

Make your changes then change back to True



Gord Dibben MS Excel MVP

On Fri, 30 Jun 2006 10:20:01 -0700, Dennis
wrote:

Using 2003

I would like to add a keyboard short-cut to a macro in an .xla file.

Of course, I tried it in Excel but .xla macros do not show up in the
dropdown box.

Is there a better/shorter way than saving the .xla file to .xls file
applying the shortcut then re-saving as an .xla file etc.

Thanks

Dennis




All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com