Insert auto updating date in word
Title = "Plus or minus date starting with " & Format(Date, Mask) Date1 = Format(Date, Mask) Var1 = "Enter number of days by which to vary above date." _ & "The number entered will be added to " Var2 = Format(Date Default, Mask) ' Today plus default (14) Var3 = Format(Date - Default, Mask) ' Today minus default (14) Var4 = ".Staying with the example of today plus 14 days, the code required for the task is reproduced as follows.
The first method puts a static date in the document; that is, the date does not change when the day changes. When you open the document tomorrow, for example, the date displayed will be tomorrow's date.Similarly you can stop Word from the changing the date to the system date by following the below simple steps : In the Date and Time window, un mark the check box with label as Update automatically then click OK button to confirm and save the changes.By this way Word users can stop automatic update of date field to the current date.I have changed this to a CREATEDATE field, which I suspect most closely reflects the real world use of such a calculation.The parts shown in red are the delay (14 days - which could equally be a negative number for a date before today) and the format of the finished date as displayed in the document.