6
1
Is there a way in MS Word 2007 (& up) to have a document variable that I can define and have updated across the document when I update that variable's value. For example:
My crazy neighbor has <CRAZY_CAT_VAR> cats!!!
I want to be able to define <CRAZY_CAT_VAR>
as 9
and be able to have the document print/show 9
instead of <CRAZY_CAT_VAR>
. I believe I've seen solutions where I can define variables in one of the document macros and then reference them using fields, but I'd prefer to do this solely via a GUI if at all possible.
Note that "Document Properties" and "Custom Properties" are different things as far as VBA is concerned. – user228546 – 2017-12-02T21:33:13.017
2
Insert > Quick parts > Document Property
is where I found the DOCPROPERTY info. Also see: http://office.microsoft.com/en-au/word-help/field-codes-docproperty-field-HA102014613.aspx – David d C e Freitas – 2013-07-22T23:40:55.030