• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Microsoft Word Question - Variable Fields

EKKC

Diamond Member
I'm building a user documentation for a client of mine, using MS Word 2007.

It's a technical documentation, but the contents it refer to may change from year to year. say the location of the file or objects, file names, object names, contact names, etc. etc.

I want to keep a table of variables in the word doc, and have the main doc refer to this list, so when I make a change to the variable (ex. CurrentYear goes from 2007 to 2008) that all references to the variable would follow as well.

Similar to a mail merge, but I won't be making many different copies, maybe a more glorified Search and Replace?
 
One way of doing it is to keep your variables in an Excel sheet or SQL database, and insert them into the Word 2007 document as data fields:

Insert > Quick Parts > Fields > Database Fields > Insert Data "as Field"

Once the data is in your Word document, you can make changes to the Excel file and have them populate to the Word document by right-clicking the fields and selecting "Update Field".

I'm not sure how you might trigger the Field Updates by changing your CurrentYear variable. Possibly some Visual Basic voodoo is needed here. Maybe someone who knows a bit more about that can add to this.

Good luck!
 
One way to ensure all the fields are updated to the latest data is to include a startup macro in the Word doc that has Ctrl+a, F9. Ctrl+a will select all in the document and F9 will updates all fields.
 
Back
Top