Hi,
I am stumped on why my code works fine in XL2003 but failing in XL2007.
I created a workbook originally in XL2003. It has multiple sheets and I have a button that runs my macro, which essentially refreshes each query to our database on each sheet returning different information on each sheet, all this using one inputted "ProjectID" criteria and then it creates a final summary page with all essential data needed. At this point it works in both Excel versions.
Now I added a couple more sheets today using XL2007 with new queries and for some reason I am getting the error:
1004: Application defined or object-defined error
But, in if I run the macro in XL2003, it works just fine right to the end.
here is a portion of my code. I have 7 other queries before these... and it is in the 9th query (Sheets("WProject")) that the error occurs at.
ie: it stops at this part:
Any ideas?
Could it be because I created the new queries using XL2007, and the workbook is still a .xls file?
Bookmarks