Scott Huish
MrExcel MVP
- Joined
- Mar 17, 2004
- Messages
- 20,611
- Office Version
- 365
- Platform
- Windows
If you don't specify a year, it will use the current one.
Code:
Function Christmas(Optional yr As Long) As Long
If yr = 0 Then yr = year(Now)
yr = yr + 1
If Date > DateSerial(yr, 12, 25) Then yr = yr + 1
Christmas = (DateSerial(yr, 1, 1) - 6) - Date
End Function