Execute Multiple Macros!

JimmySwinger

New Member
Joined
Jun 17, 2002
Messages
7
Greetings, all!

I have a virtual corneucopia of macros that I run daily. It takes up so much time and attention. I would love to create a macro that will launch multiple macros instead of me just executing one, waiting, execute another, wait... etc...

I have been trying to do this in visual basic (which comes up when I want to edit a macro) and I am definitely no programmer and unaware of the syntax used to launch a macro.

Can anybody help me?

Regards,

Jimmy
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try:

Sub Run_All_Macros()
Application.Run "'C:My DocumentsFilename.xls'!Macro1"
Application.Run "'C:My DocumentsFilename.xls'!Macro2"
Application.Run "'C:My DocumentsFilename.xls'!Macro3"
Application.Run "'C:My DocumentsFilename.xls'!Macro4"
End Sub
 
Upvote 0
Or, if you are just adding the new run all macros subroutine to your existing workbook where all the other macros live as well, either of these will do it, e.g.

Sub option1()
macro1
macro2
macro3
End Sub

Sub option2()
Call macro1
Call macro2
Call macro3
End Sub

Either of the above run subroutines called macro1, macro2 and macro3.

AJ
 
Upvote 0

Forum statistics

Threads
1,224,829
Messages
6,181,218
Members
453,024
Latest member
Wingit77

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