Skip this is excellent! I'm going to give you a star even though it didn't totally fix my issue. I had not tried this approach before so I did some research and it works great for one of my worksheets but doesn't show the query of my second worksheet when it displays the list of tables/queries. (it contains 2 worksheets). I saw some posts that it can't handle qry/tbl with calculated fields so I resolved that but it still does not display my resulting query or table (tried it both ways).
So going back to my original approach of Access exporting to excel, still works perfectly for 2010 users but not 2013. Gets a subscript out of range. Found posts that say the "object" has changed in 2013, that it invokes 2 objects so it gets confused. Found some sample code but still does not work for us.
Quote from above:
I've had a chance to play around with this some more. I was able to finally get the result I was looking for. Instead of using the original code:
Dim ExcelObject as Object
Set ExcelObject = GetObject(...filepath...)
ExcelObject.Application.Visible = True
ExcelObject.Windows(1).Visible = True
(He) added a "workbooks" activate line, so that the code now reads:
Dim ExcelObject as Object
Set ExcelObject = GetObject(...filepath...)
ExcelObject.Application.Visible = True
ExcelObject.Application.Workbooks(1).Activate
ExcelObject.Windows(1).Visible = True
(He said) Adding the "ExcelObject.Application.Workbooks(1).Activate" solved the problem so that it works the same as pre-2013 Access.
But this is from me: I get a message "Object variable or With Bock variable not set" on the added "workbooks" statement.
I'll do some more testing tomorrow.
Thanks for your help!