Not sure I understand what you are wanting. If you want to change the due date to Monday if the due date is a Fri, Sat or Sun, you could use the WeekDay() function to determine if the current due date is a Fri, Sat or Sun and add a number of days to get the following Monday.
The Weekday function can return any of these values:
Constant Value Description vbSunday 1 Sunday vbMonday 2 Monday vbTuesday 3 Tuesday vbWednesday 4 Wednesday vbThursday 5 Thursday vbFriday 6 Friday vbSaturday 7 Saturday
Example:
Due Date = Sep 13 2018. (Sep 13 2018 is a Thur.)
Function WeekDay(Sep 13 2018) returns 5, therefore NOT Fri, Sat or Sun.
Due Date = Sep 14 2018. (Sep 14 2018 is a Fri.)
Function WeekDay(Sep 14 2018) returns 6, therefore IS a Fri.
If the Function WeekDay() returns a 6, 7 or 1 (Fri, Sat or Sun), then add days to Due Date
This is an example of code to change the due date:
Code:Dim DOW As Integer DOW = WeekDay(DueDate) Select Case DOW Case 1 'Sun DueDate = DateAdd("d", 1, DueDate) Case 6 'Fri DueDate = DateAdd("d", 3, DueDate) Case 7 'Sat DueDate = DateAdd("d", 2, DueDate) Case Else 'all other days 'do nothing End Select