Help changing Keyboard Shortcut assigned to Excel Macro

A

Amar

Hi,

I don't know visual basic and have created some simple macros by recording
them in excel. I would like to chnage the shortcut keys assigned to the
macros while recording. Is this at all possible?

Tks,
Amar
 
J

Jacob Skaria

Do you mean change through code....Try

Application.MacroOptions Macro:="Macro1", ShortcutKey:="i"
 
D

DS

Alternatively, if you don't mean changing by code, if you open the Macro
Dialog Box (the one that has a list of macro names, and buttons along the
right hand side with "Edit", "Step Into" etc, select the macro you're wanting
to change and press the button marked "Options".
You'll get a new box with the middle option "Shortcut Key" - just add the
key you want to use in that box. note that if Control & the key you select
are already in use by a standard function (e.g. Control & C), your shortcut
will change to CTRL + SHIFT + (key you choose).
 

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