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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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