Difference between Workbook Macros and Global Macros?

Peter Me

New Member
Joined
Jul 3, 2011
Messages
4
Hey,

I was just wondering if someone could please tell me the difference between Workbook Macros and Global Macros?

I'm trying to figure it out by searching on search engines, but I can't seem to understand.

Thanks in advance :)
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Never heard of a "global macro" so maybe you are referring to:
• a variable declared as Public
• an add-in
• a macro in your Personal Macro Workbook

Or maybe something else...try explaining where you saw this term and under what context.
 
Upvote 0
If you want to use any of the worksheet event handlers - like the one which is triggered by worksheet changes - they must be in the worksheet code modules (Sheet1, Sheet2, etc), otherwise they won't work.

If you want to use any of the workbook event handlers - like the one which is triggered by when the workbook opens - they must be in the workbook code module (ThisWorkbook), otherwise they won't work.

A list of event handlers appropriate to the module you're in is available via the drop-down list at the top of the code window.

Although you can also put other code in those modules, I tend to keep code which isn't even-handling code in standard or general code modules. Also any general-purpose code which is called from other modules, and also user-defined functions.
 
Upvote 0
Never heard of a "global macro" so maybe you are referring to:
• a variable declared as Public
• an add-in
• a macro in your Personal Macro Workbook

Or maybe something else...try explaining where you saw this term and under what context.

This is what I saw Tom:

Use the following Automation techniques
- Workbook Macros
- Global and global macros (for printing or formatting)
 
Upvote 0
Still don't recognize it but how about just explaining what you want to do, or what task you are faced with, and that kind of detail will enable someone to assist better.
 
Upvote 0
I've got to use and compare two automation techniques, which are: Workbook Macros and Global and global macros (for printing or formatting). I need to compare the difference between them, and explain what they are used for and why I would use them for a particular task.
 
Upvote 0
Well, we've come full circle. If this is some kind of work or school assignment, I'd get clarification from whoever asked you to do this as to what exactly they are expecting as a result for example, so you can submit the kind of result that is expected. What you wrote could mean a number of possibilities, which means the odds of guessing wrong is pretty high with whatever possibility you choose.
 
Upvote 0
Well, we've come full circle. If this is some kind of work or school assignment, I'd get clarification from whoever asked you to do this as to what exactly they are expecting as a result for example, so you can submit the kind of result that is expected. What you wrote could mean a number of possibilities, which means the odds of guessing wrong is pretty high with whatever possibility you choose.

Okay thanks for your help anyway Tom.
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,610
Members
452,931
Latest member
The Monk

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