I want to open excel from visual basic form with the following code:
Dim excApp As Excel.Application
Set excApp = New Excel.Application
excApp.Visible = True
excApp.SheetsInNewWorkbook = 1
excApp.Workbooks.Add
I get the following error message: Variable uses an Automation Type not supported in Visual Basic
The file excel9.olb is checked in the project's references.
Can anyone help me?
tnx in advance
Mim
Dim excApp As Excel.Application
Set excApp = New Excel.Application
excApp.Visible = True
excApp.SheetsInNewWorkbook = 1
excApp.Workbooks.Add
I get the following error message: Variable uses an Automation Type not supported in Visual Basic
The file excel9.olb is checked in the project's references.
Can anyone help me?
tnx in advance
Mim