cj92713696
Programmer
Hello everyone,
I'm relatively new to OLE programming and I have a question for you gurus! =)
I'm trying to write a Visual Basic 6.0 application that replaces script variables from an existing Word document with another value and saves the document as a filename other than the existing template.
Thus far ...
I have already created my Word document inserting an opening "<", than a variable name I create, with a closing ">". I need my Visual Basic app. to replace the variable with different text.
Here's an example ...
---
Dear <customer>,
Annual profits are not in accordance ...
---
I'd like to use a replace command if it exists, but I have not had any luck finding it. Just to replace all occurences of <customer> with something else.
Your help is very much appreciated!
Thanks,
CJ
I'm relatively new to OLE programming and I have a question for you gurus! =)
I'm trying to write a Visual Basic 6.0 application that replaces script variables from an existing Word document with another value and saves the document as a filename other than the existing template.
Thus far ...
I have already created my Word document inserting an opening "<", than a variable name I create, with a closing ">". I need my Visual Basic app. to replace the variable with different text.
Here's an example ...
---
Dear <customer>,
Annual profits are not in accordance ...
---
I'd like to use a replace command if it exists, but I have not had any luck finding it. Just to replace all occurences of <customer> with something else.
Your help is very much appreciated!
Thanks,
CJ