View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gary Nguyen Gary Nguyen is offline
external usenet poster
 
Posts: 5
Default Insert Macro into Excel Workbook using C# code

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