Execute multiple Specific Macro

dimasd

New Member
Joined
Feb 10, 2016
Messages
3
Greetings All,

I'm new in this forum. Please help me :(

I have specific worksheet (example WA,WB,WC,etc) which runs specific macros (MA,MB,MC,etc).
Therefore WA only run by MA; WB only run by MB, and so on.

I would like to create one master macro which run all macros. However, on one workbook sometimes contain combination on worksheet (example in Workbook 1 contains WA,WB; Workbook 2 contains WA,WD,WF; Workbook 3 contains WB,WC).

I have several workbook to run its macro. Could you help me setup one master macro to run every macros (I have 30 types of macros) regardless its worksheet combination?

Thanks before.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Are you talking about several different Worksheets or Workbooks?
You said Quote:
I have specific worksheet
However, on one workbook

It could be very difficult to combine 30 different macros all into one. Especially if your talking about performing scripts on several different sheets in several different WorkBooks
Please clear this up for me and show me a sample of some of your scripts.

If you were able to write 30 some Macros and you know exactly what there doing as far as opening workbooks closing workbooks and so on you could write one script sort of like this which will call each script in the order you want.

Call Macro_One
Call Macro_Two
Call Macro_Three

etc. etc.
 
Last edited:
Upvote 0
Welcome to the MrExcel board!

Is this the sort of thing you mean? If not, please try to give further clarification.

Rich (BB code):
Sub RunMacros()
  Dim ws As Worksheet
  
  For Each ws In Worksheets
    Select Case ws.Name
      Case "WA": Call MA
      Case "WB": Call MB
      Case "WC": Call MC
      Case "WD": Call MD
      ')
      ') Add more Cases
      ')
    End Select
  Next ws
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

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