contain control value replace with old + new value
step to reproduce
- in .docx file I change AUTO12345 to AUTO11111
- same .docx file I use in code for replacing contain control
- when I replace contain control value with a new value (AUTO9999).
- it’s replaced with AUTO999911111 value
but my expected output is it will replace with new value (AUTO9999)
Please give me a solution with the existing code.
PFA
test1.zip (35.8 KB)