Pls how do I add a 2nd target [A2] to the code so that:
If A2 is equal to "V", unhide range "newrange",
else, hide "new range"
My current code:
If target A5 is <> blank, unhide superregion, else, hide it.
[vba]Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Intersect(Target, [A5]) Is Nothing Then Exit Sub
If UCase(Target) <> "" Then
Range("superregion").EntireRow.Hidden = False
Else
Range("superregion").EntireRow.Hidden = True
End If[/vba]
Its a challenge because I heard that we can only have one
private sub per ws, and I dont know how to expand the vba above
to hold one more target and condition (A2 = "V")
Your help is hugely appreciated.
Nee