Hi everyone, i did some searching and was able to write this script, but it does not work. Anyone have any ideas?
Thanks a lot for any input.
sd
Code:
Sub HideRows()
Dim cell As Range
Application.ScreenUpdating = False
ActiveSheet.Rows.Hidden = False
For Each cell In Range("CK:CK")
If cell.Value = "P" Then
cell.EntireRow.Hidden = True
End If
Next
For Each cell In Range("CK:CK")
If cell.Value = "O" Then
cell.EntireRow.Hidden = True
End If
Next
Rows("240:1197").Select
Selection.EntireRow.Hidden = True
Rows("3:239").Select
Selection.EntireRow.Hidden = False
Sheets("Schedule Tool").Range("A1") = "Now Showing: Week 1"
Sheets("Schedule Tool").Range("A2") = Sheets("Labor Budget").Range("B1")
Range("F5").Select
Application.ScreenUpdating = False
End Sub
Thanks a lot for any input.
sd