Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
Posting code between [CODE] [/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
try one of the folloiwngs
Dim dteMonday As Date
dteMonday = IIf(Weekday(Date) = 1, Date - 6, _
Date - (Weekday(Date) - 2))
Select Case Day(dteMonday)
Case 1, 21, 31: n = "st"
Case Is = 2, 22: n = "nd"
Case 3, 23: n = "rd"
Case Else: n = "th"
End Select
Cells(1, 7).Value = "Week Commencing " & Format(dteMonday, "mmmm d""" & n)
Dim dteMonday As Date
dteMonday = IIf(Weekday(Date) = 1, Date - 6, _
Date - (Weekday(Date) - 2))
n = Choose(Val(Right$(Day(dteMonday), 1)) + 1, "th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th")
Cells(1, 7).Value = "Week Commencing " & Format(dteMonday, "mmmm d""" & n)
Bookmarks