Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

could any one please tell me how can i create a macro that runs other macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
VB Script for Excel - 23 Mar 2006 06:11 GMT
How would I create a macro that runs 4 different macros in the same
workbook. Assume the names of those 4 macros as Step1, Step2, Step3,
Step4.

So how would i create another macro (say, name it as StepAll) that
would run sequentially all the 4 macros (i.e. Step 1, 2, 3,4)

HELP

Thanks
Dhaval K
ABG - 23 Mar 2006 07:15 GMT
The easiest way is to write another macro that calls each of the others.

For example:

sub StepAll()
   step1
   step2
   step3
   step4
End Sub

This will run them in the order presented.

> How would I create a macro that runs 4 different macros in the same
> workbook. Assume the names of those 4 macros as Step1, Step2, Step3,
[quoted text clipped - 7 lines]
> Thanks
> Dhaval K
Ardus Petus - 23 Mar 2006 07:17 GMT
sub stepAll
   Step1
   Step2
   Step3
   Step4
end sub

HTH
--
AP

> How would I create a macro that runs 4 different macros in the same
> workbook. Assume the names of those 4 macros as Step1, Step2, Step3,
[quoted text clipped - 7 lines]
> Thanks
> Dhaval K
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.