I have the following macro:
I want it to run automatically when the file is opened, but only in 2 particular sheets, lets say "SHEETA" and "SHEETB"
Can anybody help me with this?
Thanks!
Code:
Sub Do_it()
If Now > 43466 Then Range("C:D,F:F").EntireColumn.Hidden = False ' 43466 is Jan 1 2019
If Now > 43497 Then Range("K:K,P:P").EntireColumn.Hidden = True ' 43497 is Feb 1 2019
If Now > 43525 And Now < 43534 Then Range("W:Z").EntireColumn.Hidden = False ' march 1~10 2019
End Sub
I want it to run automatically when the file is opened, but only in 2 particular sheets, lets say "SHEETA" and "SHEETB"
Can anybody help me with this?
Thanks!