Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro for running other macro

How cam i write a macro for running 3 others macro?
Thank you
By

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default macro for running other macro

As long as they're all in the same Module just put in the name of the other macros in that one, VBA will do the rest
Else if there in the same project you have to qualify the whole name

Private Sub RunMacros(
Macro
Macro
Macro
End Su

----- pippo100 wrote: ----

How cam i write a macro for running 3 others macro
Thank yo
By


--
Message posted from http://www.ExcelForum.com


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default macro for running other macro

If the macros you want to run are in the same workbook, just call them:

Sub Main_Macro()
Call Some_Other_Macro1
Call Some_Other_Macro2
End Sub

Sub Some_Other_Macro1()
. . .
End Sub

Sub Some_Other_Macro2()
. . .
End Sub

If a macro is in a different workbook, use the Application.Run method:

Application.Run _
"Other_Workbook.xls!Other_Macro"

Regards,
Wes
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
Disable running of SelectionChange macro when in another macro? Tonso Excel Discussion (Misc queries) 6 March 21st 10 06:50 PM
Event Macro running another macro inside K1KKKA Excel Discussion (Misc queries) 1 December 20th 06 08:21 PM
disable user running macro from Tools Macro Steve Simons Excel Discussion (Misc queries) 4 September 28th 06 06:28 AM
running a macro ina workbook that doesnt have that macro Paul Excel Programming 2 February 18th 04 01:47 AM
Launch Macro in Access via Macro running in Excel??? dgrant Excel Programming 1 September 24th 03 01:38 PM


All times are GMT +1. The time now is 10:47 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"