Insert Macro into Excel Workbook using C# code

G

Gary Nguyen

Let's say I have thousand of existing excel workbooks and I want to insert
a macro funtion into all of them. Is there a way to automate this.
I'm looking for a way to insert the VB macro function (such as
Workbook_BeforeClose function) into ThisWorkBook using C# code.
Does anyone know what Microsoft provides us or references to proceed this?
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top