Hi All,
I am trying to write a vba code that will read a date on the current sheet and if that date does not fall within the current month and year, said sheet will be hidden. So far I have:
If Worksheets("09_2020").Range("A2").Value <> Format(Date, "MM/DD/YYYY") Then
Worksheets("09_2020").Visible = False
End If
All help is welcomed. Thank you.
I am trying to write a vba code that will read a date on the current sheet and if that date does not fall within the current month and year, said sheet will be hidden. So far I have:
If Worksheets("09_2020").Range("A2").Value <> Format(Date, "MM/DD/YYYY") Then
Worksheets("09_2020").Visible = False
End If
All help is welcomed. Thank you.