#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default macro help

Can you provide help on the VBA code to run multiple macros from a single
"super macro"? In other words, what is the code for a macro named XYZ to run
macros the macros named ABD, DEF and GHI?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default macro help

perhaps

Sub supermacro()
MsgBox "supermacro"
abd
def
ghi
MsgBox "and back to supermacro"
End Sub

Sub abd()
MsgBox "Abd"
End Sub

Sub def()
MsgBox "def"
End Sub

Sub ghi()
MsgBox "ghi"
End Sub


Mike
"wamstrdad" wrote:

Can you provide help on the VBA code to run multiple macros from a single
"super macro"? In other words, what is the code for a macro named XYZ to run
macros the macros named ABD, DEF and GHI?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default macro help

Option Explicit
Sub XYZ()
call abd
call def
call ghi
end sub



wamstrdad wrote:

Can you provide help on the VBA code to run multiple macros from a single
"super macro"? In other words, what is the code for a macro named XYZ to run
macros the macros named ABD, DEF and GHI?


--

Dave Peterson
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
need help to update macro to office 2007 macro enabled workbook jatman Excel Discussion (Misc queries) 1 December 14th 07 01:57 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM


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