Link to home
Start Free TrialLog in
Avatar of Helen Feddema
Helen FeddemaFlag for United States of America

asked on

Data from doc properties wiped out when accepting all changes in Word 2010

In an .mdb database originally running in Office 2003, I have Access VBA code that writes data to doc properties in documents created from Word .dot format templates.  The templates are set up to track changes.  When the documents are created, the user accepts changes (clicking the Accept All Changes button in the toobar), which changes the red underlined data displayed in DocProperty fields to black, non-underlined text.  The user may also change some text in the document, and then click Accept All Changes again.  This works fine.  But I recently upgraded the database to Access 2010 format (making a brand-new .accdb database, importing all objects into it, and making various changes as needed).  I also upgraded the templates to .dotx or .dotm format, as needed.  Now, when a new document is created from a template, the data from the doc properties is initially displayed (red, underlined), but when the user clicks Accept All Changes, the data disappears.  It is still in the doc properties -- I can see it in the Custom Properties dialog -- but it doesn't display on the document.  How can I prevent this data from disappearing?
Avatar of Helen Feddema
Helen Feddema
Flag of United States of America image

ASKER

I just made a little test database and template to post here, and they did not have the problem, so I suspect it may be a result of updating the old .dot template to .dotx format.  This is an extremely complex template, so I hope it can be fixed without having to recreate it from scratch.  I can't post the actual template, because it has sensitive data.
ASKER CERTIFIED SOLUTION
Avatar of Helen Feddema
Helen Feddema
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is more of a workaround than a solution, but it does the job.