View Single Post
 
Old 08-21-2024, 04:19 PM
gmaxey gmaxey is offline Windows 10 Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Roger, I'm not sure I understand what you are trying to do. In the file download, I provided examples for outputting the selected date in both "D of MMMM, YYYY" and "MMMM d, YYYY" do you only want MMMM d?


If so, modify:

Case "BODMDY"
With oRng
.Text = Format(oDate, "MMMM d")
.Collapse wdCollapseEnd
.Start = .End
.InsertAfter fcnOrdinal(Format(oDate, "D"))
.Font.Superscript = True
.Start = .End
'.InsertAfter " " & Format(oDate, "YYYY") (stet out this line)
.Font.Superscript = False
End With
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote