Reply to McGenius and Muddy
Hello and thank you for your reply,
So I understand that i need to take off the "Microsoft Excel 8.0 Object Library" from the references
and insted of the following 3 lines:
Dim xlApp As Excel.Application
Dim objWorkbook As Excel.Workbook
Dim objWorksheet As Excel.Worksheet
to write :
Dim xlApp As Object
Dim objWorkbook As Object
Dim objWorksheet As Object
and to change:
Set xlApp = New Excel.Application
to:
Set xlApp = CreateObject("Excel.Application")
i'll try it
Thank you both,
Best regards,
ERAN
Re: Reply to McGenius and Muddy
Quote:
Originally posted by eranfox
Hello and thank you for your reply,
So I understand that i need to take off the "Microsoft Excel 8.0 Object Library" from the references
and insted of the following 3 lines:
Dim xlApp As Excel.Application
Dim objWorkbook As Excel.Workbook
Dim objWorksheet As Excel.Worksheet
to write :
Dim xlApp As Object
Dim objWorkbook As Object
Dim objWorksheet As Object
and to change:
Set xlApp = New Excel.Application
to:
Set xlApp = CreateObject("Excel.Application")
i'll try it
Thank you both,
Best regards,
ERAN
Yes, that will late bind it. Minor point: You shouldnt need to Dim objWorkbook and objWorksheet as you arent using those variables anywhere.