DougDodge
asked on
Excel VBA to calculate observed Boxing Day Holiday
Looking for a VBA script of code to calculate both the observed Christmas and Boxing days.
If Christmas falls on a Friday, then Boxing Day would be observed as Monday, December 28
If Christmas falls on a Saturday, then observed holiday is December 24, and Boxing Day would be Sunday and observed as Monday December 27
If Christmas falls on a Sunday, then Christmas is observed as Monday December 26, and Boxing Day moves to Tuesday December 27
If Christmas falls on a Friday, then Boxing Day would be observed as Monday, December 28
If Christmas falls on a Saturday, then observed holiday is December 24, and Boxing Day would be Sunday and observed as Monday December 27
If Christmas falls on a Sunday, then Christmas is observed as Monday December 26, and Boxing Day moves to Tuesday December 27
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The presented solution had errors when run. It did not properly dim the variables.
pls try
Open in new window
Regards