XLA routines: EE_LastFridayOfMonth
EE_LastFridayOfMonth returns the last friday of the month that the date entered is in.
Function EE_LastFridayOfMonth(dt As Date) As Date 'Takes a date, returns last friday. Dim intLoop As Integer Dim dtLast As Date 'http://excelexperts.com/xla-routines-eeLastFridayOfMonth for updates on this function dtLast = EE_LastDayOfMonth(dt) Do While Weekday((dtLast - intLoop)) <> vbFriday intLoop = intLoop + 1 Loop EE_LastFridayOfMonth = dtLast - intLoop End Function
»
- Nick's blog
- Login or register to post comments
- 2559 reads
Recent comments
5 years 41 weeks ago
6 years 27 weeks ago
6 years 39 weeks ago
6 years 42 weeks ago
6 years 43 weeks ago
6 years 48 weeks ago
7 years 4 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago