andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I am trying to do a worksheet change code, but can't quite get it right.
What I am trying to do is, when the value of H16 is changed, and it is less than -$10.00, then Column I will be unhidden. I only want that to happen when the value in H16 is changed, not when any cell is changed.
Any help would be greatly appreciated.
I am trying to do a worksheet change code, but can't quite get it right.
Code:
Private Sub Worksheet_Change(ByVal Target As Range) If H16 < -10 Then
Columns("I:I").Hidden = False
End If
End Sub
What I am trying to do is, when the value of H16 is changed, and it is less than -$10.00, then Column I will be unhidden. I only want that to happen when the value in H16 is changed, not when any cell is changed.
Any help would be greatly appreciated.