Ste_Moore01
Active Member
- Joined
- Jul 13, 2005
- Messages
- 467
Hi,
I've created a macro that needs to "call" another macro
i.e.
Is it possible for Macro2 to end Macro1?
In Macro2 I have some code which checks to see if a certain cell is true. If it is then the macro will continue, if not I want macro1 and macro2 to end.
Is this possible at all?
I've created a macro that needs to "call" another macro
i.e.
Code:
Sub Macro1()
Workbooks.Open Filename:="C:\Test.xls"
Call Macro2
Workbooks.Open Filename:="C:\Test1.xls"
Workbooks.Open Filename:="C:\Test2.xls"
Workbooks.Open Filename:="C:\Test3.xls"
Workbooks.Open Filename:="C:\Test4.xls"
Workbooks.Open Filename:="C:\Test5.xls"
End Sub
Is it possible for Macro2 to end Macro1?
In Macro2 I have some code which checks to see if a certain cell is true. If it is then the macro will continue, if not I want macro1 and macro2 to end.
Is this possible at all?