Found it. I thought that when I saved the query, the file name and the query name would be the same. I found where the name is set in the spreadsheet, changed it and now it works.
Thanks for your help.
Gary
That was the first thing I checked. I found the query file "USPSTracking.iqy in c:\Documents...\Application Data\Microsoft\Queries. And it is definitely on Sheet1. It's probably something simple, but I'm not seeing it.
I am getting an error implementing the solution presented in the previous thread titled "Running Excel Web Query & Importing to Access". The error is "Error 9 - Subscript out of range" on the statement "Set objQueryTable = objWorkSheet.QueryTables(strQueryTable)"
Here is my code:
Private Sub...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.