XLA Routines: EE_IsWeekend

EE_IsWeekend is a function that takes a date, and returns whether it is a weekend.
Function EE_IsWeekend(dt As Date) As Boolean 'Takes a date, returns if it's a weekend 'http://excelexperts.com/xla-routines-eeIsWeekend for updates on this function Select Case Format(dt, "w") Case vbSaturday, vbSunday EE_IsWeekend = True Case Else EE_IsWeekend = False End Select End Function
»
- Nick's blog
- Login or register to post comments
- 3090 reads

Recent comments
6 years 36 weeks ago
7 years 22 weeks ago
7 years 34 weeks ago
7 years 37 weeks ago
7 years 38 weeks ago
7 years 43 weeks ago
7 years 51 weeks ago
8 years 1 day ago
8 years 1 day ago
8 years 2 days ago