Excel file won't open in MS Access.
This piece of code was working until a few days ago. Now it's NOT erroring out and it's not creating any Excel objects.
Dim XL As Object
Set XL = New Excel.Application
XL.workbooks.Open(ourPath)
The Object assignment should work (the path is correct, I've checked it multiple times).
Since you are using early binding, perhaps you are missing the reference to the Microsoft Excel Object library (
Tools > References), or perhaps this library has been rendered asMISSINGas a result of opening your database in an earlier version of MS Access.Nevertheless, to avoid the reliance on references entirely and rule this out as a possible cause, you could try using late binding e.g.: