KlausW
Active Member
- Joined
- Sep 9, 2020
- Messages
- 453
- Office Version
- 2016
- Platform
- Windows
Hi, I use this VBA code to open and color the sheet for the current month.
It works as it should.
But the sheets from the previous month still has the same color as the current month.
Can someone help with the fact that the previous month has no color.
Any help will be appreciated.
Best Regards Klaus W
It works as it should.
But the sheets from the previous month still has the same color as the current month.
Can someone help with the fact that the previous month has no color.
Any help will be appreciated.
Best Regards Klaus W
VBA Code:
Option Explicit
Private Sub Workbook_Open()
Sheets(Format(Now, "mmmm")).Activate
Sheets(Format(Now, "mmmm")).Select
ActiveSheet.Tab.ColorIndex = 4
End Sub