Insert auto updating date in word
Note that it comprises an outer field with 32 other fields nested at various depths within it. The way to enter this is press ctrl f9, type QUOTE and then press enter, then ctrl f9 and type SET Delay 21. The last piece of code( "MMM d, yyyy" ) is where you define the date format you want displayed.
Alternatively you could use a macro like this: Sub Plus Three Weeks() Selection. \@ "MMM d, yyyy"} As Graham stated, it contains a series of nested fields. Move your cursor between the 2 remaining }} and press enter.
Hi Paul, One of the things I really dislike about word is the lack of ability to add dates in fields. Create the following macro: Sub Auto Open() Selection.
If you are editing an existing document that has lots of date codes that cause those dates to change each time you open the document, and want to replace all of them with the current date (as text strings, not codes), see the DATEREPL ("date replace") macro in the Library.
It was designed to be played from a toolbar button or keystroke combination ("shortcut") whenever you need to replace changeable dates with static dates in an existing document.
The date (as text) should now be displayed on screen at the cursor location.
hello, i need to create a MS Word file; that when it open it has today's date (date file is opened) plus twenty-one days added to it. I'm just not sure where to insert the code to add twenty-one more days to the Today Date.