I have an Access database that contains some VBA code that opens an Analysis 1.4-enabled workbook, to which I pass the results of a query as prompt values. This has worked great up until I installed Analysis 2.2.
Now when I open the Analysis-enabled workbook (with 2.2 installed), I receive a VBA error:
Here is a snippet of the code I use:
Dim xlApp As Excel.Application
Dim xlWB As Excel.Workbook
Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = True
Set xlWB = xlApp.Workbooks.Open("some excel file", , False)
The code fails on Set xlApp = CreateObject("Excel.Application").
If Analysis is not set to open with Excel, the code works, but, of course, the workbook is not Analysis-enabled and I cannot refresh my data.
Anyone have any ideas how to get around this?
p.s.
I have googled quite a bit, and there is a lot of info re: error 429, but I haven't been able to find any solutions.