Returns the date of the previous weekday.


* For instructions on how to add a function to a workbook refer to the page under Inserting Functions
* The equivalent JavaScript function is PREVIOUSWEEKDAY

Public Function PREVIOUSWEEKDAY(ByVal dtDateValue As Date) As Date 
   PREVIOUSWEEKDAY = Application.WorksheetFunction.WorkDay_Intl(dtDateValue, -1)
End Function

© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext