One Macro that runs other macros in other workbooks

mlarson

Well-known Member
Joined
Aug 25, 2011
Messages
509
Office Version
  1. 2010
Platform
  1. Windows
Hi all, I have multiple workbooks (let's say they are named WORK2,WORK3,WORK4,etc.) that each contain macros (named WORK2mac,WORK3mac,etc.). And I have one workbook (let's call it WORK1) that contains one macro (WORK1mac). My question is, what would the code be for the macro WORK1mac so that when it is run it would automatically run all the other macros in the other workbooks? And would this work if all workbooks are closed except the WORK1 workbook?

Thanks so much,
Mark
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I should also add that I would like the macro that runs the other macros to be a button in my worksheet. I know how to create the button but just thought I should mention that in case it causes any problems of which I'm unaware. Thanks in advance for any help you can provide!
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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