andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello All,
I have the following code that I have been using successfully for a while now:
Now, however I have made a few chances to my sheet, and I can't quite figure out how to get the code to match. For every row that has a value in Column D I need that row and the row immediately below to be visible.
Any help would be greatly appreciated.
I have the following code that I have been using successfully for a while now:
Code:
Private Sub SchedulerPrep() Rows("88:207").Select
Selection.EntireRow.Hidden = True
Rows("164:196").Select
Selection.EntireRow.Hidden = False
Rows("164:196").Hidden = False
For r = 164 To 196
If r <> 164 And r <> 193 And r <> 194 Then
If Range("D" & r).Value = "" Then Rows(r).Hidden = True
End If
Next r
Range("A1").Select
End Sub
Now, however I have made a few chances to my sheet, and I can't quite figure out how to get the code to match. For every row that has a value in Column D I need that row and the row immediately below to be visible.
Any help would be greatly appreciated.