See the added IF statement and new variable (MyMonth1) in red below that should correct this issue:
Sub SaveFileWithDate()
MyMonth = Format(Date, "mmm")
MyDay = Day(Date)
If Weekday(Date + 1, vbMonday) > 5 Then
MyMonth1 = Format(Date + 3, "mmm")
Else
MyMonth1 = Format(Date + 1, "mmm")
End If
If Weekday(Date + 1, vbMonday) > 5 Then
MyDay1 = Day(Date + 3)
Else
MyDay1 = Day(Date + 1)
End If
MyFileName = "Schedule " & MyMonth & " " & MyDay & " - " & MyMonth1 & " " & MyDay1 & ".xls"
ActiveWorkbook.SaveAs Filename:="C:\Admin" & MyFileName, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWindow.Close
Workbooks.Open "C:\Admin" & MyFileName
End Sub
HTH
Jason
Bookmarks