Hello all,
I updated a macro that had been created by a previous resource, and now when I call the macro in my Access DB I am receiving a "Run-time error '438': Object doesn't support this property or method'.
I'm confused because I use the same late-binding references in all my forms. Also, I checked the name of the macro and the path of the macro for obvious errors and found none.
What could cause this error? Where should I look to find simple bugs? Is there an issue with my code?
I updated a macro that had been created by a previous resource, and now when I call the macro in my Access DB I am receiving a "Run-time error '438': Object doesn't support this property or method'.
I'm confused because I use the same late-binding references in all my forms. Also, I checked the name of the macro and the path of the macro for obvious errors and found none.
Code:
Dim xlApp As Object
Dim xlWB As Object
Set xlApp = CreateObject("Excel.Application")
Set xlWB = xlApp.Workbooks.Open("C:\Users\Alex\DB\UploadMacro.xlsm"): DoEvents
xlApp.Visible = True
xlWB.Run "OCRMacro"
xlApp.Quit
Set xlApp = Nothing
Set xlWB = Nothing
What could cause this error? Where should I look to find simple bugs? Is there an issue with my code?
Any help is appreciated; if needed, I am happy to provide more information.