Wednesday, 15 September 2010

Word 2007 form fields unprotect document via VBA clears all fields but not in Word 2002 version -


I have a VBA code that prints the Word document generated from the word template with the Word field and then changes it Reprint incompatible headers and documents for when I vulnerable the doctor to change the contents of the header, all form fields are cleared. But: When I use a Word 2002 doctor who has just been saved as a 2007 dot format, everything works fine.

I should be ashamed to decide it is so easy to leave me as a developer Think about - or do not work in the previous months every day: -)

Answer: The parameter noreset is to be set true

  ActiveDocument.Protect NoReset = True  

No comments:

Post a Comment