Hi could someone explain the difference between creating instance of excel in access
Dim xlApp As Excel.Application
Set xlApp = CreateObject("Excel.Application")
The above produced run time errors when running my code within access when opening excel files for example this method is not support.
However if changed the code to below then there were no errors and code run as expected.
Dim xlApp As Object
Set xlApp = CreateObject("Excel.Application")
bit confused to why this would happen.
Dim xlApp As Excel.Application
Set xlApp = CreateObject("Excel.Application")
The above produced run time errors when running my code within access when opening excel files for example this method is not support.
However if changed the code to below then there were no errors and code run as expected.
Dim xlApp As Object
Set xlApp = CreateObject("Excel.Application")
bit confused to why this would happen.