![]() |
#1
|
||||
|
||||
![]() Hi all. I do the current date with: {SAVEDATE\@"d"\*ordinal\*MERGEFORMAT} day of {SAVEDATE\@"MMMM"\*MERGEFORMAT}, 2021 Is there a better way of getting the current date straight without breaks so the updating of the day and month would be done in one mouse click? Thank you. |
#2
|
||||
|
||||
![]()
You could put the entire string, including both dates, in a QUOTE field. You also don't need the \*MERGEFORMAT and, ideally, your second field would output the year as well:
Code:
{QUOTE "{SAVEDATE \@ "d" \* ordinal} day of {SAVEDATE \@ "MMMM, YYYY"}"}
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
||||
|
||||
![]()
Paul, how do I paste the quote field using Quick Parts?
|
#4
|
||||
|
||||
![]()
The simplest answer is: don't. Instead, select your current range, then press Ctrl-F9 to enclose it in a pair of field braces, to which you then add the requisite 'QUOTE' and opening/closing double-quote pair.
Alternatively: • Press Ctrl-F9 twice so you get {{}} • Reposition the insertion point between either the {{ or the }} and press Ctrl-F9 again, so you end up with {{}{}} • Then fill in the field coding so you end up with the: Code:
{QUOTE "{SAVEDATE \@ "d" \* ordinal} day of {SAVEDATE \@ "MMMM, YYYY"}"}
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Note: the spaces are important.
You can paste that into your document and use this utility to make it an actual field: Import and export field constructions as text by Graham Mayor, MVP |
#6
|
||||
|
||||
![]()
Did the simplest way and got a blank but I remembered the instruction in the previous related thread to save then update.
Thank you Paul. I'm sharing this to fellow employees so I am thinking on how to make them follow the steps easily. Alternately pressing Ctrl-F9 and Alt-F9 is very confusing to many of them. |
#7
|
||||
|
||||
![]() Quote:
In any event, if this is something you and your colleagues need to use regularly, the constructed field should be either added to the the relevant template or saved in that template as a Quick Part the users can insert as required.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#8
|
||||
|
||||
![]()
Saving a template to Quick Parts is new to me, as in many other features of Word. I will try it. Thank you.
|
#9
|
||||
|
||||
![]()
Another please. I tried manually applying the superscript to st but when I updated it, the superscript went back to regular font. Is there another switch for the superscript fonf?
|
#10
|
||||
|
||||
![]() Quote:
|
#11
|
|||
|
|||
![]() Quote:
Otherwise, Insert > Quick Parts > Save Selection to Quick Parts Gallery. Building Blocks are one of the hidden gems of Word. Automated Boilerplate Using Microsoft Word Where can Building Blocks be stored? |
#12
|
||||
|
||||
![]() Quote:
https://www.msofficeforums.com/word/...-tutorial.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#13
|
||||
|
||||
![]()
Marcia
I am surmising here but your stated need to exit the file and re-open Word is likely not due to the issue you think it is. I suspect you are testing this field in a document that has not been saved yet. If that is the case, SaveDate won't have a value it can return yet so it returns a blank value. SaveDate is an unfortunate field that is always one step behind in that it shows the date the document was previously saved until you update the field - which then means you need to save the document again, which then means you need to refresh the field etc. So to do testing of the field properly: 1. Save the document (to set the metadata value save date to right now) 2. Refresh the field 3. Save the document again to store the refreshed field value.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#14
|
||||
|
||||
![]() Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#15
|
||||
|
||||
![]()
Yes Paul. I saw your response after I posted so I went back and dropped that content from my response.
FWIW: I don't know why anyone would want to superscript ordinals so that is one of the autocorrects I always turn off on new Word installs.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
lucky16 | Word VBA | 2 | 07-01-2016 01:14 PM |
autotext and current format | alysolyman | Word VBA | 0 | 02-21-2013 12:23 AM |
![]() |
Erbwon | Word | 6 | 11-12-2012 06:17 PM |
![]() |
ketanco | Project | 1 | 02-08-2012 02:20 PM |
![]() |
KIM SOLIS | Excel | 2 | 11-04-2011 06:09 PM |