How to update the old file with new template

B

BJ

We have a template which has been used by users for years. Recently, the
template was updated not only code but also the interface - added 2 new
company logos.
When user opened the old document with the updated template, somehow, user
didn't see the new logos showing on the old document.
My question is how the updated template can be linked to the old file, not
only the code, but also the interface, like new logos.

Thank you for your help
 
J

Jean-Guy Marcil

BJ said:
We have a template which has been used by users for years. Recently, the
template was updated not only code but also the interface - added 2 new
company logos.
When user opened the old document with the updated template, somehow, user
didn't see the new logos showing on the old document.
My question is how the updated template can be linked to the old file, not
only the code, but also the interface, like new logos.

If you changed content in the template, do not expect older documents based
on the previous version to change their content as well. Word does not work
like that, unless the content that needs to be updated are AutoText fields or
some other fields.

If that it not the case, then you wil lneed some code to change the content
that needs to be changed.

Here is one way to do it:

I would used Autotext entries for that:
Create autotext entries in template (one per logo and one for each piece
of information that needs updating);
Create a custom document property that can be uesd to flag if document
needs to be updated;
When older document is opened, look for existence of custom document
property, if it is found, document has already been updated, stop updating
sub.
If the custom document property is not found, document needs to be updated;
Look for the appropriate locations;
Repalce old content with Autoptext field (Use a field so if you later
change the logo, the update will be automatic);
Create a custom docuement property (same as one in template) so code will
not run again on this document.
 
B

BJ

Thank you so much for your quick reply.

I thought there would have some properties out there I missed...
well, i have to work on my code...

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top