Raddrummer
10-29-2008, 02:59 PM
Hi everyone,
I want to have Excel hide or unhide columns L:O based on the what integer the user puts into cell Q4. I have the macro working correctly but need help calling it each time the user changes the value in cell Q4.
Here is the code I have so far:
Sub ShowHide()
If (Range("Q4") >= 0.75) And (Range("Q4") < 1) Then
Columns("l:o").Select
Selection.EntireColumn.Hidden = False
Else: Columns("l:o").Select
Selection.EntireColumn.Hidden = True
End If
End Sub
All help is greatly appreciated.
I want to have Excel hide or unhide columns L:O based on the what integer the user puts into cell Q4. I have the macro working correctly but need help calling it each time the user changes the value in cell Q4.
Here is the code I have so far:
Sub ShowHide()
If (Range("Q4") >= 0.75) And (Range("Q4") < 1) Then
Columns("l:o").Select
Selection.EntireColumn.Hidden = False
Else: Columns("l:o").Select
Selection.EntireColumn.Hidden = True
End If
End Sub
All help is greatly appreciated.