![]() |
|
|
|
#1
|
||||
|
||||
|
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#2
|
|||
|
|||
|
The original code initially changed all date pickers to rich text controls, and then attempted to change them back to date pickers once the date had been changed to an ordinal.
".Type = wdContentControlDate" needed to be moved into a later IF statement to actually do so. I also moved ".Type = wdContentControlRichText" so it would only change the relevant date pickers, but that was really just because, more than out of necessity. To be fair, I can't see why it actually didn't work for me without the changes, I'm just happy now it does. If it makes any difference, the date I was transforming to an ordinal was formatted simply as "d", rather than the day-month-year format posed in the original question. I ran it in Office 2016, if that makes any difference. |
|
#3
|
||||
|
||||
|
No, that is not how it works. As written, the code can only apply to the date-picker content control being exited, and only then if it is titled 'MyDate'.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
| Tags |
| ordinal date superscript |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
word 2003 date picker
|
nashville | Word | 16 | 04-06-2012 04:12 AM |
| Calculations using values from date picker controls | Inkarnate | Word | 0 | 06-09-2010 07:16 AM |
| Word 2007 date and time picker | dmcohio | Word | 2 | 04-09-2010 04:13 AM |
Inserting Date, formatting to superscript and subscript
|
louq | Word | 1 | 10-22-2009 09:29 AM |
| Date format always interpreted as a formula | Butch Jackman | Excel | 1 | 02-14-2006 11:27 AM |