default_name
Board Regular
- Joined
- May 16, 2018
- Messages
- 180
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
Hey all,
I have a workbook with a tab named 'References'
Based on the current date, I would like the 'References' tab/worksheet to be assigned/moved as follows.
....it continues for several more sheets in the workbook (27 to be exact).
I think I can get the rest of the sheet set up as long as the initial pattern is set for the others.
I imagine it would be something like this integrated into a conditional statement?
Thanks in advance for your help!
I have a workbook with a tab named 'References'
Based on the current date, I would like the 'References' tab/worksheet to be assigned/moved as follows.
If today's date falls between: | 'References' Sheet Position in the Workbook |
Jan13 - Jan26 | 3rd tab from left |
Jan27 - Feb9 | 4th tab from left |
Feb10 - Feb23 | 5th tab from left |
Feb24 - Mar8 | 6th tab from left |
I think I can get the rest of the sheet set up as long as the initial pattern is set for the others.
I imagine it would be something like this integrated into a conditional statement?
VBA Code:
Sheets("References").Move before:=Sheets(3)
Thanks in advance for your help!
Last edited: