Macro works but shortcut key will not

vbabeginner92

New Member
Joined
Jul 25, 2018
Messages
13
I made a very simple macro.

Sub Yellow_Highlight()
Selection.Interior.Color = RGB(255, 255, 0)
End Sub

I then assigned it a shortcut key of CTRL+SHIFT+H

When I run the macro using F8 or Visual Basic it works fine. When I try to use the shortcut it does not work. Any suggestions?
 
.
Are you able to post your workbook to a CLOUD site (Dropbox, Amazon Cloud, Google, etc) for inspection and review ? Do not include any confidential information.

Also provide a list of the shortcut key macros and what they do.
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Here is all you should need to do:
1.Create the Macro in any Workbook
2. In the Vba Project window select the Macro and drag it into the Personal folder
3.Now choose View from the ribbon
4.Choose Macros
4. Choose The Macro in the Personal Workbook
5. Choose Options and assign the Shortcut key.

6. Now close Excel
7.Choose save when your asked save changes to Personal Workbook

Now restart Excel and when you use the Shortcut key you assigned to the macro the Macro should run
You do not need to put script in ThisWorkbook Open
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top