G
Graeme
I am trying to use a Private Sub Worksheet_Change event macro to change the
value of cell “g12†when there’s a change to cell “a3â€, and when cell “g6†=
1. Cell “a3†is itself the cell link of a combo box (created from the
“Forms†toolbar). I know that this kind of macro only works under some
circumstances, but is this one of them? My code is:
Private Sub worksheet_change(ByVal target As Range)
If Not Intersect(target, Me.Range("a3")) Is Nothing Then
If Range("g6").Value = "1" Then
Range("g12").Value = "8"
End If
End If
End Sub
value of cell “g12†when there’s a change to cell “a3â€, and when cell “g6†=
1. Cell “a3†is itself the cell link of a combo box (created from the
“Forms†toolbar). I know that this kind of macro only works under some
circumstances, but is this one of them? My code is:
Private Sub worksheet_change(ByVal target As Range)
If Not Intersect(target, Me.Range("a3")) Is Nothing Then
If Range("g6").Value = "1" Then
Range("g12").Value = "8"
End If
End If
End Sub