Macro for all Workbooks

beirrac

New Member
Joined
Jul 20, 2007
Messages
45
I am trying to write a macro that I can use in all workbooks and I can't figure out where/how to save the macro so whenever I open excel it is available. I tried saving a personal.xls in the xlstart folder, but it didn't work. Any suggestions?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

sweeneytime

Board Regular
Joined
Aug 23, 2010
Messages
183
I had issues with that too, the work around I use is: save the workbook in the windows startup folder, then the excel sheet will always be open when you start the computer.

StartMenu -> Programs -> Startupfolder.
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,585
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I am trying to write a macro that I can use in all workbooks and I can't figure out where/how to save the macro so whenever I open excel it is available. I tried saving a personal.xls in the xlstart folder, but it didn't work. Any suggestions?
What version of Excel are you using?
 

beirrac

New Member
Joined
Jul 20, 2007
Messages
45
I am using 2010, I tried the other posters suggestion before I posted my question and it is not working.
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,585
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I am using 2010, I tried the other posters suggestion before I posted my question and it is not working.
Easiest way to create a PERSONAL.XLSB workbook is to record a simple macro. When the record macro dialog box opens set the store in dropdown to personal. This will create the PERSONAL.XLSB file (note not .xls) and save it to the XLSTART folder on your main drive.
 

Forum statistics

Threads
1,144,374
Messages
5,723,989
Members
422,529
Latest member
mbilal429

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