Nat Wallis
asked on
Bulk change "Field" variable in Word
I am updating some of our internal documentation.
I use a number of "DocProperty" or Advanced Property\Custom variables in my document.
I am trying to re-organise and standardise naming.
What I need to do is replace all fields with the "DocProperty" value of "IPADDRESS" to the new "DocProperty" value of "1IPADDRESS"
I can manually go thru, select the field, change but with a LOT of these that is very painful.
Wondering if there is a way to make this process a bit easier.
I am using MS Word 2013 SP1
I use a number of "DocProperty" or Advanced Property\Custom variables in my document.
I am trying to re-organise and standardise naming.
What I need to do is replace all fields with the "DocProperty" value of "IPADDRESS" to the new "DocProperty" value of "1IPADDRESS"
I can manually go thru, select the field, change but with a LOT of these that is very painful.
Wondering if there is a way to make this process a bit easier.
I am using MS Word 2013 SP1
Hi,
You can change the variable Name with VBA without adding a property
ActiveDocument.CustomDocum entPropert ies("IPADD RESS").Nam e = "1IPADDRESS"
Regards
You can change the variable Name with VBA without adding a property
ActiveDocument.CustomDocum
Regards
ASKER
Thanks,
Sorry I think I wasnt very clear, is there a way to replace the field in the document.
I have in the document both IPADDRESS and 1IPADDRESS.
I want to change any field variables that are looking at "IPADDRESS" to be changed to "1IPADDRESS"
Not sure if that makes sense.
Sorry I think I wasnt very clear, is there a way to replace the field in the document.
I have in the document both IPADDRESS and 1IPADDRESS.
I want to change any field variables that are looking at "IPADDRESS" to be changed to "1IPADDRESS"
Not sure if that makes sense.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks very much, that has done the job very nicely :-)
ASKER