Making a recursive function that will take a date, add X days to it and find the first non-weekend non-holiday
If the function outputs 23/12/2023 (saturday + holiday), it will spit out 27/12/2023 - the first non-weekend non-holiday.
00:00 Find first non-vacation non-weekend day
00:37 Sub to test
01:08 AddXDays, check the input is a date
03:17 Holidays as an array
04:00 Variables
04:45 Check for weekends
05:28 Loop through holidays
06:12 Recursive function call
06:35 Test #1
06:43 Debugging
07:11 Stepping through the function
08:30 Using the function in a sheet
08:42 Wrong formatting
09:59 Subs can change the cell formatting
Смотрите видео 80 - Recursion in VBA (find the next valid day) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь WesleySon 25 Июль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 52 раз и оно понравилось 1 людям.