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

G

Guest

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
 
G

Gord Dibben

In Excel go to Tools>Macro>Macros 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
View>Properties Window.

Change "IsAddin" to False

Make your changes then change back to True



Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top