In an Access 2000 application, I'm using the following code to open Excel file Example.XLS:
' Start Excel
Dim xlApp As Object ' Excel.Application
Set xlApp = CreateObject("Excel.Application"
' Add a new workbook
Dim xlBook As Object ' Excel.Workbook
Set xlBook = xlApp.Workbooks.Open("Example.XLS"
But, when running this application in Access 2002 (Office XP), I get an error message:
"Unable to get the Open property of the workbooks class"
I need this application can run in Access 2000 and Access 2002.
Help me, please !
Thank you
CHUONGCOM
' Start Excel
Dim xlApp As Object ' Excel.Application
Set xlApp = CreateObject("Excel.Application"
' Add a new workbook
Dim xlBook As Object ' Excel.Workbook
Set xlBook = xlApp.Workbooks.Open("Example.XLS"
But, when running this application in Access 2002 (Office XP), I get an error message:
"Unable to get the Open property of the workbooks class"
I need this application can run in Access 2000 and Access 2002.
Help me, please !
Thank you
CHUONGCOM