Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Automation - Updating Word Macros

Status
Not open for further replies.

stuartmckay

Programmer
Dec 4, 2006
13
CA
I have word automation with VFP that is using a combination of VFP calls to the word object model and running word macros. I would like to improve the functionality of the word macros so will need to write a conversion utility that will replace the existing macros with the new and improved version in each of the template documents. I am guessing that I will first need to programmically delete the existing macro, then programmically import the new macros which I have saved to .bas files using the word export function. How are other people handling this type of maintenance issue?

Stuart
 
I had to do something like this a few years ago. There is actually an object model for doing this kind of thing, but I'd have to dig pretty deep into old code to find it. Let me know if you need me to.

I seem to recall that the relevant objects were part of the generic Office stuff, not Word-specific.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top