Hi I'm still pretty new to VBA,
I would like to run a macro on all open workbooks with the exception of one (which is the workbook i have my macros stored on). Could anyone help thanks
Hi I'm still pretty new to VBA,
I would like to run a macro on all open workbooks with the exception of one (which is the workbook i have my macros stored on). Could anyone help thanks
Last edited by RobertHT; 02-18-2009 at 06:00 PM.
sorted...
What does sorted mean?
Depends on what you macro will do. Maybe something like:
[VBA]Sub RunMyMac()
Dim wb As Workbook
For Each wb In Workbooks
If wb.Name <> ThisWorkbook.Name Then
wb.Activate
MyMac
End If
Next wb
End Sub
[/VBA]
hey ken,
thanks for that. How do i change the thread to solved?
Greetings Robert,
Above your first post, click the button "Thread Tools" and Marked Solve is available to the original poster.
Have a great day,
Mark