Hi
I have created a code to create excel macro in C#.But while trying to create a new VBA code module i am getting a error.The code that i have used is
module = excelWorkbook.VBProject.VBComponents.Add(VBIDE.vbext_ComponentType.vbext_ct_StdModule);
this part of the code is throwing an error.
Error 1 The best overloaded method match for 'Microsoft.Vbe.Interop._VBComponents.Add(Microsoft.Vbe.Interop.vbext_ComponentType)' has some invalid arguments
Error 2 Argument '1': cannot convert from 'VBIDE.vbext_ComponentType' to 'Microsoft.Vbe.Interop.vbext_ComponentType'
thanks in advance