Hello,
im pretty new to excel vba and i couldnt find any code to make it work
to hide cells that are equal to "text in cell list" and < than date today
This is the current VBA Code: (Highlighted is the non working part)
---------------------------------------------------------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Activate
If Not Application.Intersect(Range("B1"), Range(Target.Address)) Is Nothing Then
Select Case Target.Value
Case Is = "Dag Totaal": Rows("6:150").Rows.AutoFit
Case Is = "Week Totaal": Rows("6:150").RowHeight = 3
Case Is = "Dag Huidig" And "A"<Today : Rows("6:150").EntireRow.Hidden = True
Case Is = "": Rows("6:150").Rows.AutoFit
End Select
End If
End Sub
--------------------------------------------------------------------------------------------------------
im pretty new to excel vba and i couldnt find any code to make it work
to hide cells that are equal to "text in cell list" and < than date today
This is the current VBA Code: (Highlighted is the non working part)
---------------------------------------------------------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Activate
If Not Application.Intersect(Range("B1"), Range(Target.Address)) Is Nothing Then
Select Case Target.Value
Case Is = "Dag Totaal": Rows("6:150").Rows.AutoFit
Case Is = "Week Totaal": Rows("6:150").RowHeight = 3
Case Is = "Dag Huidig" And "A"<Today : Rows("6:150").EntireRow.Hidden = True
Case Is = "": Rows("6:150").Rows.AutoFit
End Select
End If
End Sub
--------------------------------------------------------------------------------------------------------