After a few researches I finally got the todays date shown as I want it. But when I run the userform and change the date it doesn't update in my docvariable.
But i have the code as above:
ActiveDocument.Variables("varDate").Value = Format(Me.DTPicker1.Value, "Long Date")
Does somebody know a solution that the date choosen in the userform is in my docvariable?
|