Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have created a macro in 5 separate workbooks that run various tasks
and all update off of a single sheet. I would like to make a macro on that single sheet that goes to each one of the separate sheets and starts those macros. Is there a way to do that? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() As ALWAYS, post your code for comments -- Don Guillett Microsoft MVP Excel SalesAid Software wrote in message ... I have created a macro in 5 separate workbooks that run various tasks and all update off of a single sheet. I would like to make a macro on that single sheet that goes to each one of the separate sheets and starts those macros. Is there a way to do that? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In one place you say "5 different workbooks" and then later you say"goes to
.... the separate sheets". Are we talking about one .xls file with 5 or 6 sheets (tabs) in it, or are we talking about 6 different .xls files? If everything is in the same .xls file, then this should work for you, just change the names of the sheets and "MyMacro" to what they need to be: Sub DoAllSheets() Dim startingSheet As String startingSheet=ActiveSheet.Name Worksheets("firstSheetName").Activate Run "MyMacro" Worksheets("secondSheetName").Activate Run "MyMacro" Worksheets("thirdSheetName").Activate Run "MyMacro" Worksheets("fourthSheetName").activate Run "MyMacro" Worksheeets("AnotherSheetName").Activate Run "MyMacro" Worksheets(startingSheet).Activate End Sub " wrote: I have created a macro in 5 separate workbooks that run various tasks and all update off of a single sheet. I would like to make a macro on that single sheet that goes to each one of the separate sheets and starts those macros. Is there a way to do that? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro in excel 2007 | New Users to Excel | |||
Excel 2007 Macro Help (Excel 2003 not working in 2007) | Excel Discussion (Misc queries) | |||
Excel 2007 - Macro Not Available | Excel Discussion (Misc queries) | |||
Excel 2007 Macro | Excel Discussion (Misc queries) | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions |