Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi guys,
One question: Do you know how to convert the macro: Sub UglyMacro () Application.Run "FirstFile.xls!SameMacroButStoredInThisSpecificWor kbook" ActiveWindow.ActivateNext Application.Run "SecondFile.xls!SameMacroButStoredInThisSpecificWo rkbook" ActiveWindow.ActivateNext Application.Run "ThirdFile.xls!SameMacroButStoredInThisSpecificWor kbook" ActiveWindow.ActivateNext End Sub into macro that will go like: Sub DraftNiceMacro () For each wbk in Application.Workbooks Application.Run "wbk.SameMacroButStoredInThisSpecificWorkbook" Next wbk End Sub This one is not working for some strange reason... Thanks for your help, Mark |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Spreadsheet will not open without Excel Application being open fir | Excel Discussion (Misc queries) | |||
Can Excel open a new application every time you open a file? | Setting up and Configuration of Excel | |||
Can not open excel files without open application | Excel Discussion (Misc queries) | |||
Using workbooks.open after new instance of excel application | Excel Programming | |||
Excel 2003 Workbooks.Open with CorruptLoad=xlRepairFile fails on Excel 5.0/95 file due to Chart, with Error 1004 Method 'Open' of object 'Workbooks' failed | Excel Programming |