rob_sheeds
Board Regular
- Joined
- Dec 9, 2010
- Messages
- 57
Hi, my loop is red and wont work. Can you suggest a change?
Thanks in advance!!!!!
Public Sub Hide_Sheets_If_Zero_Closing_Bal()
Worksheets("Summary").Activate
Range("E2").Select
Do While ActiveCell.Value <> ""
If ActiveCell.Value = "0" Then
Worksheets(ActiveCell.Offset(0, -4)).Visible = False
Else
Worksheets(ActiveCell.Offset(0, -4)).Visible = True
End If
Range(ActiveCell.Offset(1, 4)).Select
Loop Until (ActiveCell.Value = "")
End Sub
Thanks in advance!!!!!
Public Sub Hide_Sheets_If_Zero_Closing_Bal()
Worksheets("Summary").Activate
Range("E2").Select
Do While ActiveCell.Value <> ""
If ActiveCell.Value = "0" Then
Worksheets(ActiveCell.Offset(0, -4)).Visible = False
Else
Worksheets(ActiveCell.Offset(0, -4)).Visible = True
End If
Range(ActiveCell.Offset(1, 4)).Select
Loop Until (ActiveCell.Value = "")
End Sub
Last edited: