Macro Shortcut Key

D

Derek Johansen

Hey guys, I'm hoping someone can give me a hand here.

I have a very simple format and print macro that I wrote that needs to be
ran frequently. I want to assign a shortcut key to it. I have tried
everything I can think of for combinations, and nothing seems to run. When I
press the shortcut key, i get the famous microsoft "dong" sound or whatever
you call it! Does anyone have any idea what's going on with this?
 
J

JLGWhiz

On the menu bar click Tools>Macro>Macros>Options. Click on the Macro name
in the dialog box and then fill in the blanks in the Option dialog box. OK
out of it and you should be all set.
 
J

Jacob Skaria

Set the Security level to low/medium in (Tools|Macro|Security). Goto menu
Tools>Macro>Macros>Options. Select the Macro and then assign a key

If this post helps click Yes
 
D

Derek Johansen

This is what I tried. I tried using Ctrl + e, q, m and none of them work
(all of them are currently available. I checked my macro code, and it
registers as having a shortcut key... but it just doesn't activate the macro!
Grr!
 
D

Derek Johansen

No good. Something is wrong somewhere in my system... I'll have to look
into it further! Thanks guys!
 
J

JLGWhiz

If this is your first macro and you are running xl2003 or later, then you
might need to activate VBA. Click
Tools>Options>Security>MacroSecurity>TrustedPublishers and then check the
boxes for trusting add-in and VBA. If you are running xl2007 you might have
to take a different path to get there, but essentially the same thing.
 
D

Derek Johansen

The macros run fine on their own, and have for a month now. I just wanted to
try to expedite things as much as possible by adding a shortcut key.... which
isn't working! Oh well. Thanks for the help!
 
J

JLGWhiz

I am almost afraid to ask this, but I notice you refer to simply pressing
the shortcut key. Are you pressing Ctrl + shortcut key or just shortcut
key?
 
D

Derek Johansen

Haha, I appreciate the reserve in asking, but yes, I am pressing control. I
swear this is an issue beyond user error! I've restarted, rewrote, and reset
the macro and my computer and am still getting the same issue! AHH! This
shouldn't be this difficult!
 
J

JLGWhiz

One other thing. It is case sensitive.


Derek Johansen said:
Haha, I appreciate the reserve in asking, but yes, I am pressing control.
I
swear this is an issue beyond user error! I've restarted, rewrote, and
reset
the macro and my computer and am still getting the same issue! AHH! This
shouldn't be this difficult!
 
J

JLGWhiz

And the macro has to be in a general module, not a class module like sheet,
control or ThisWorkbook.
 

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