How to add excel 2010 macro programmatically
Is there any method to add macro to Excel file programmatically ? I have too many Excel files I want to add a macro to them. Adding manually (by hand) seems impossible. I need to create a tool to do this. CuberChase Yes, you can do this programatically, you can access the VB Integrated Development Environment through code. The following website are excellent for learning about the VBIDE, I've used them to put together this code. If you run WorkbookModuleImport two open dialog boxes will pop up, the first asking for workbooks to import the modules into, the second to select the modules for