gravity1000
New Member
- Joined
- Aug 28, 2010
- Messages
- 6
Hallo
I am having a problem with calling 2 macros sequentially when using Private Sub Worksheet_Change(ByVal Target As Range) .
What I want to happen looks like this:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$O$2" Then
Call Macro1
Call Macro2
End If
End Sub
However. when I change the value in $O$2 only Macro2 runs; Macro1 does not run. When I run Macro1 by itself, it does run fine. The problem is that I want Macro1 to run FIRST on a change in $O$2 because it supplies changed data for use in the output of Macro2.
What am I doing wrong????
Anyone able to help me?
I am having a problem with calling 2 macros sequentially when using Private Sub Worksheet_Change(ByVal Target As Range) .
What I want to happen looks like this:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$O$2" Then
Call Macro1
Call Macro2
End If
End Sub
However. when I change the value in $O$2 only Macro2 runs; Macro1 does not run. When I run Macro1 by itself, it does run fine. The problem is that I want Macro1 to run FIRST on a change in $O$2 because it supplies changed data for use in the output of Macro2.
What am I doing wrong????
Anyone able to help me?