Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default listobjects and querytables

Is is possible in Excel 2003 to create a ListObject that has as it's
QueryTable an old-fashioned Database Query stored in a .dqy file. If I
"add" such a QueryTable to a worksheet in a VBA Module, and then "add"
a ListObject to the same range, I get an error that I can't overlap a
list with an pivot table or query.

To get around this I can delete the QueryTable first, but then every
time I want to requery the database, I have to create a new QueryTable.
I could live with this, but I can't preserve my original name for the
QueryTable. Excel insists on adding "_1", "_2" to the name I assign to
the QueryTable each time recreate it. This doesn't happen if I open
and close Excel, but that would be a bit much for users to deal with.

Any suggestions on either assigning a Database Query to a
ListObject.QueryTable, or preventing Excel's unique names for being
assigned.

Thanks, S.Parker

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveSheet.QueryTables.Add Rick Excel Programming 4 November 10th 05 04:24 AM
ActiveSheet.QueryTables.Add quartz[_2_] Excel Programming 0 November 9th 05 07:18 PM
Querytables parameters Dwaine Horton[_3_] Excel Programming 5 April 27th 05 04:34 PM
QueryTables Add Marta[_3_] Excel Programming 0 January 19th 05 05:32 PM


All times are GMT +1. The time now is 10:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"