One macro to systematically run F5 key on up to 20 other macros

75 pts.
Tags:
Microsoft Excel
Microsoft Excel macros
I have put together a series of macros which autofilter information to create a report on different tabs within a workbook. Having 17 macros all similar it would be handy to have one macro which would systematically activate each Module in turn and therefore require just the one key combination Ctrl+Shift+(?).

Software/Hardware used:
Excel 2003

Answer Wiki

Thanks. We'll let you know when a new response is added.

What? No one has answered?

Go to the VBE (Alt F11).

Create a Macro called Main. Assign it to your Ctrl+Shift+(?). Here is the code:

Sub Main()

Macro1
Macro2
Macro3
Macro4
Macro5
Macro6
Macro7

End Sub

This assumes you’ve used the Macro Recorder and let it automatically name each macro. If you named the macros something else – just substitute that name for Macro#.

I hope this helps. Since you’re into Excel reports, you might want to check out my blog: Beyond Excel

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following