Personal Macro

Genetu

New Member
Joined
Apr 20, 2022
Messages
23
Office Version
  1. 2016
Platform
  1. Windows
Good morning, guys. I have tried many times to call my personal macro procedures from "This Worksheet" using 'OnKey' (assigning Keyboard shortcut). But I can't do that. Is there any way to call my personal macro modules from the "This Worksheet" code? And how can I activate my personal macro keyboard shortcuts available for all workbooks as we did in "This Worksheet" for the "Open_Workbook" event?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
davesexcel, first thank you for your response. I can call them but I can't use the shortcut key. Shortcut keys are faster than assigned tab icons to process.
 
Upvote 0
I guess I got confused when you used the term "This Worksheet" and "OnKey"

To clarify, you have shortcut keys to run macros from your personal macro workbook, but they don't work?
 
Upvote 0
I guess I got confused when you used the term "This Worksheet" and "OnKey"

To clarify, you have shortcut keys to run macros from your personal macro workbook, but they don't work?
Ok, devesexcel. Let me explain, we can use the (Workbook_Open) event in the worksheet code module (This workbook). This will make the code active when the workbook is open even if the shortcuts are assigned using "Onkey". But the shortcut keys are not active in the personal macro-VBA. we can assign using "Onkey" but it is not active as the" Workbook_Open" event. I have attached an image here.
Open workbook.PNG
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,007
Members
448,935
Latest member
ijat

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