hi i am working with c# and excel-2007…
i wanted to add a macro to excel and run from c#, for which i think i need access to the VBComponents but unfortunately i cannot see it after i do the following
wb.VBProject.
should i add any com objects? or what should i do to see the VBComponents…
i already have
using Excel = Microsoft.Office.Interop.Excel;
//wb is a workbook i can see VBProject but not other components of it...
To add the VBIDE, looks like you have to search for the Microsoft Visual Basic for Applications Extensibility Library. See here for more details.
Hope these help.