Datefield in Word to Text in AutoOpen Macro before updating field

Copper Contributor


I'm searching for a solution to convert the datefield in Word by the AutoOpen Macro before the field updates. I've the macro to unlink the fields, but it will updates the dates before the unlink happens.


Macro command: ActiveDocument.Fields.Unlink


Does anyone have a solution for this?

3 Replies
A DATE field will always show the current date (following an update). If you want the creation date of the document, use a CREATEDATE field instead. No unlinking would be required.

If you are trying to do something entirely different, please elaborate.


Thanks for the answer. But I need to convert over 1000 documents automatically. I can't edit these documents. 

So I need a solution to put a macro in the Normal.dotm file.  



That certainly is different. 


Since the DATE field updates when a document opens, simply unlinking the field isn't going to help, as you have noticed. You could have the AutoOpen macro replace DATE fields with CREATEDATE fields, but that would require more complex coding of course.