Hello Guys
I am unable to set values of multiple cells differently when an IF condition evaluates to true , below is snapshot of my macro code .
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Value = "John" And Range("A2").Value = "Mayor" Then
Range("B1").Value = "Captain"
Range("B2").Value = "Pro Division"
End If
End Sub
I am relatively new to VBA so I suppose this might be a real basic thing , I could have done it using IF function in excel but that only allows upto 64 levels of nesting
Thanks in advance
Bookmarks