![]() |
#16
|
|||
|
|||
![]() I've attacthed the document I created along with the macros that were pasted from the samples |
#17
|
||||
|
||||
![]()
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#18
|
|||
|
|||
![]()
Greg. Thanks. This works and I created a new document copying your macros and date picker field and it works. But when I try to add a new date picker of my own, it doesn't work. How can I create one that works. Also, when I click on properties for your date picking field I don't get as many options. Why is that?
|
#19
|
|||
|
|||
![]()
Greg has been super helpful in displaying the ordinal date in the format
"D of MMMM,YYYY" Now I need to change the ordinal disaplay to "MMMM D" and I'm not sure how to modify the code. This what I've been using as mod_SpecFormatDates See Attachment |
#20
|
|||
|
|||
![]()
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 |
#21
|
|||
|
|||
![]()
Thanks Greg, Let me look at your examplges again. Also now it will be MMMM d, YYYy
|
#22
|
|||
|
|||
![]()
OK Greg. Here's what I don't understand. Do I have to change something to do something to change from EOD to BODMDY?
Thanks, ROger |
#23
|
|||
|
|||
![]()
FIgured it out. thanks
|
#24
|
|||
|
|||
![]()
You've been super helpful in the past. I'm now facing a new and perplexing problem. When I insert a date picker, it works until I save the file. It ceases to function in a saved file. I've tried to save as both a document and template, with and without macro support and the result is the same. One the file is saved, the datepicker ceases to function. Any thoughts?
|
#25
|
||||
|
||||
![]()
If the datepicker is being deleted, that suggests you're saving the document in the older .doc format, which doesn't support content controls. Content controls get converted to plain text in such documents.
If it's just that the ordinal function ceases to work, that suggests you're saving the document in the .docx format and that the ordinal function is in an underlying .docm document instead of being in a .dotm template to which your document is attached. If neither of those is the issue, then, without actually seeing the problem document, it can be difficult for anyone to work out what's going on. Can you attach a document to a post with some representative data (delete anything sensitive)? You do this via the paperclip symbol on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#26
|
|||
|
|||
![]()
Paul, I was saving as docm or dotm. Deleting the normal template and recreating it seems to have solved it. What I realized was unusual that if the date picker or other content control didn't function in a saved file, when I opened the enable editing menu and close it full functionality returns, even though I never disabled editing. Strange
|
#27
|
||||
|
||||
![]()
Glad you got it sorted.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
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 |
![]() |
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 |