Hello people,
I get this error when I trying to import a myBasfile.bas module.
here is my code
Could someone help me?
Thank you in advance
I get this error when I trying to import a myBasfile.bas module.
here is my code
Code:
Dim excelApp As Microsoft.Office.Interop.Excel.Application
excelApp = New Microsoft.Office.Interop.Excel.Application
excelApp.Visible = True
excelApp.Workbooks.Add()
Dim workingmodule As String
Const vbext_ct_StdModule = 1
excelApp.Visible = True
workingmodule = excelApp.VBE.ActiveVBProject.VBComponents.Add(vbext_ct_StdModule).Name
excelApp.VBE.ActiveVBProject.VBComponents.Item("Module1").CodeModule.AddFromString(My.Resources.MyBasfile)
'excelApp.Run("Run_One")
Could someone help me?
Thank you in advance