W
Wes from Scottsdale
I'm working with Footers, searching for one string value to replace it with
another. If the footer has fields in it and I assign ...Footers(#).Range =
Replace(stuff, ...Footers(#).Range), the fields are converted to static text.
How can I keep the actual value of the Range intact to write it to another
Range or a variable, updating some text while maintaining the dynamic fields?
Here is the relevant line of code :
ActiveDocument.Sections(s).Footers(h).Range =
Replace(ActiveDocument.Sections(s).Footers(h).Range, OrigDocID, NewVersion)
Thanks,
Wes
another. If the footer has fields in it and I assign ...Footers(#).Range =
Replace(stuff, ...Footers(#).Range), the fields are converted to static text.
How can I keep the actual value of the Range intact to write it to another
Range or a variable, updating some text while maintaining the dynamic fields?
Here is the relevant line of code :
ActiveDocument.Sections(s).Footers(h).Range =
Replace(ActiveDocument.Sections(s).Footers(h).Range, OrigDocID, NewVersion)
Thanks,
Wes