Macro everywhere not just the current cell

daniels012

Well-known Member
Joined
Jan 13, 2005
Messages
5,219
I have a macro I have created for a button on my toolbar. It only works when I open that workbook. How can I move this or create a macro that works all the time?

Thank You,
Michael
 

Some videos you may like

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
Put it in Personal.XLS. Then it will be available to all workbooks.

If you don't have one yet, record a macro (doing anything) and store it in "Personal Macro Workbook", then drag your existing macro into that.

HTH,

Smitty
 

daniels012

Well-known Member
Joined
Jan 13, 2005
Messages
5,219
How do I "Store it in Personal Macro Workbook"??
Do I need to open a new workbook and name it Personal.xls ????
I created the macro... Now how do I save it?? Under File I see options to, import, export, Save Book2, etc. etc.

Thank You for your quick response,
Michael
 

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
When you go to Tools-->Macro-->Record New Macro you'll see an option to "Store macro in:".

Select "Personal Macro Workbook". That will create "Personal.XLS". Then with your other wb open, in the VBE, drag the module to Personal.XLS.

Smitty
 

Watch MrExcel Video

Forum statistics

Threads
1,122,646
Messages
5,597,352
Members
414,138
Latest member
Ankitjainkaka

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
Top