andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I have this code:
It works perfectly, but I have multiple ranges that I need to apply it to, and I've been unsuccessful at adjusting it properly.
H17, H18, H20, H22 all need the same thing applied to it. Also if there is a way to make two conditions so if the cell value is -10 or less or 10 or more, that'd be very helpful as well.
I have this code:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, [H16]) Is Nothing Then
If [H16] < -9.99 Then
[I1].EntireColumn.Hidden = False
Else: [I1].EntireColumn.Hidden = True
End If
End If
End Sub
It works perfectly, but I have multiple ranges that I need to apply it to, and I've been unsuccessful at adjusting it properly.
H17, H18, H20, H22 all need the same thing applied to it. Also if there is a way to make two conditions so if the cell value is -10 or less or 10 or more, that'd be very helpful as well.