default_name
Board Regular
- Joined
- May 16, 2018
- Messages
- 180
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
Hello,
I have a few different functions that are set up to do different things depending on the current date.
List of functions:
2020_Tasks
2021_Tasks
2022_Tasks
Is there a way, using VBA, to only call the '2020_Tasks' function if the current year is 2020, and then to continue moving through the rest of the sub.
(similarly only calling '2021_Tasks' if the current year is 2021, etc...)
Thanks in advance
I have a few different functions that are set up to do different things depending on the current date.
List of functions:
2020_Tasks
2021_Tasks
2022_Tasks
Is there a way, using VBA, to only call the '2020_Tasks' function if the current year is 2020, and then to continue moving through the rest of the sub.
(similarly only calling '2021_Tasks' if the current year is 2021, etc...)
Thanks in advance