Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #21  
Old 08-21-2024, 04:19 PM
gmaxey gmaxey is offline Ordinal Numbers with DatePicker Windows 10 Ordinal Numbers with DatePicker 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace all Images with ordinal numbers in multiple files beginner Word 0 09-19-2021 02:19 AM
Formatting th at the end of ordinal dates DBlomgren Publisher 0 01-23-2016 09:44 AM
How do I code ListBox and DatePicker in UserForm? - Word 2013 ickelly Word VBA 4 08-05-2015 04:07 PM
Ordinal Numbers with DatePicker Datepicker format piper7971 Excel 1 07-26-2015 02:29 AM
MergeField Alphabetic Ordinal substitutes _ for Z khinnenkamp Mail Merge 1 09-29-2013 07:01 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft