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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# to update a macro in a Word document

Status
Not open for further replies.

JasonEnsor

Programmer
Sep 14, 2010
193
GB
Hello,

I am trying to update a macro in multiple documents and that is an easy enough task for me to do, however other people in my department need to be able to update the macro's in the documents to. my question is: is it possible to use C# to locate a word file, open it and attach the Macro to the word document then to close it?
The steps i think i need to take are:

* Open Word Document
Import Macro in to the document
Run Macro
* Close Word

The * items i can do....

Any help would be appreciated.

Regards

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top