Excelnoub
Member
Good day,
I’ve been on this for a couple of days. I can figure out how I would take this code and rule out the weekend date.
I have a userform that checks for ElseIf IsEmpty, then I would like to add the following but don’t know how I would puzzle them together:
I need to check if my ActiveCell.row, 10 falls on a weekend then to populate the message then select the range as it is doing but it's the first line that I can't figure out.
If someone would know this code I would be grateful
I’ve been on this for a couple of days. I can figure out how I would take this code and rule out the weekend date.
I have a userform that checks for ElseIf IsEmpty, then I would like to add the following but don’t know how I would puzzle them together:
Code:
ElseIf Cells(ActiveCell.row, 10) = Weekday(date1) = vbSaturday And Weekday(date1) = vbSunday Then
MsgBox "Date cannot fall on a weekend, please change the Actual Date"
Range("J" & ActiveCell.row).Select
Unload Me
Application.EnableEvents = True
Exit Sub
I need to check if my ActiveCell.row, 10 falls on a weekend then to populate the message then select the range as it is doing but it's the first line that I can't figure out.
If someone would know this code I would be grateful