Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Modified "For Each wbk In Application.Workbooks"
Hello there,
One more "telegraphical" question... If I want to make changes in all open workbooks, I use something like: For Each wbk In Application.Workbooks <do something Next wbk Now, my question is: how to write the macro that will <do something on all the open workbooks except the one from which the macro is executed? Many thanks for your help on this, Mark |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Modified "For Each wbk In Application.Workbooks"
For Each wbk In Application.Workbooks
if wbk.Name < thisworkbook.Name then <do something end if Next wbk -- Regards, Tom Ogilvy "markx" wrote: Hello there, One more "telegraphical" question... If I want to make changes in all open workbooks, I use something like: For Each wbk In Application.Workbooks <do something Next wbk Now, my question is: how to write the macro that will <do something on all the open workbooks except the one from which the macro is executed? Many thanks for your help on this, Mark |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Modified "For Each wbk In Application.Workbooks"
Thanks Tom...
Next time I should think more by myself... "Tom Ogilvy" wrote in message ... For Each wbk In Application.Workbooks if wbk.Name < thisworkbook.Name then <do something end if Next wbk -- Regards, Tom Ogilvy "markx" wrote: Hello there, One more "telegraphical" question... If I want to make changes in all open workbooks, I use something like: For Each wbk In Application.Workbooks <do something Next wbk Now, my question is: how to write the macro that will <do something on all the open workbooks except the one from which the macro is executed? Many thanks for your help on this, Mark |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Multiple "source" workbooks linked to single "destination" workboo | Excel Worksheet Functions | |||
problem with Linking workbooks via "copy" and "paste link" | Excel Discussion (Misc queries) | |||
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" | Excel Programming | |||
"Subscript out of range" error for: Workbooks("Test1.xls").Save | Excel Programming |