Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PWK PWK is offline
external usenet poster
 
Posts: 27
Default Run all macros in module with one command

Is there a way to call/run all macros in a module with one command? I
have many modules with 7 Subs/macros in them and would like to run
them with one line rather than 7 lines. Is it possible? How would I
proceed, maybe some kind of loop?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Run all macros in module with one command

Create a master macro in the standard code module1.

Sub Master()
macro1
macro2
macro3
macro4
macro5
macro6
macro7
'Any cleanup code
End Sub

Then you only have to initiate the master procedure which will call the
other procedures.

"pwk" wrote:

Is there a way to call/run all macros in a module with one command? I
have many modules with 7 Subs/macros in them and would like to run
them with one line rather than 7 lines. Is it possible? How would I
proceed, maybe some kind of loop?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Macros running on same module Travis Excel Worksheet Functions 2 May 6th 08 12:46 PM
Command button to run macro in a module DG Excel Programming 2 March 21st 07 10:15 PM
command button for vba module delmac Excel Programming 1 June 23rd 05 06:04 PM
MoveAfterReturn command fails in Worksheet module quartz[_2_] Excel Programming 1 April 1st 05 08:49 PM
Two Macros-One Module BulaMan Excel Discussion (Misc queries) 2 December 16th 04 01:24 PM


All times are GMT +1. The time now is 03:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"