auto run macros

kendel

Board Regular
Joined
Mar 2, 2010
Messages
133
Hello, I'm using MS XP and Exel 2007.
I want to run a macro automatically when the workbook is opened. I've read several solutions here but it seems like I missed the first half of the movie cause I can't seem to get it. Please explain it in a generic way, that would apply to any macro.
Thanks, Kendel
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Press ALT + F11 to open the Visual Basic Editor. In the Project window double click ThisWorkbook and paste in

Code:
Private Sub Workbook_Open()
Call MyMacro
End Sub

Change MyMacro to the name of the macro that you want to run.
 
Upvote 0
VoG, thank you! How to add more macros to the autorun? can I just list them:

call check
call sort
call format3

end sub
??
thanks again!!
 
Upvote 0

Forum statistics

Threads
1,214,608
Messages
6,120,500
Members
448,968
Latest member
screechyboy79

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