Answer the question
In order to leave comments, you need to log in
How to calculate date in Word?
Hello!
It is necessary to implement the insertion of the current date + 90 days in the MS Word document line.
Used the field Label (Inscription). Poking around with the inscription module:
Private_Sub вычисляемая_дата_Click()
Dim d As Date
вычисляемая_дата.Value = d + 90
End Sub
Answer the question
In order to leave comments, you need to log in
You need the DateAdd() function :
Sub test()
Dim d As Date
d = DateAdd("d", 90, Now)
Selection.TypeText (d)
End Sub
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question