Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help referring to query tables by name

Is there a way to refer to Query Tables by name instead of by index
number? Or is there a way to change the index numbers? I have a sheet
with a large number of querys and need to reference them individually,
preferably by name.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Help referring to query tables by name

Dim oQT as Querytable
set oQT = Activesheet.QueryTables("MyQuery")

MyQuery being the name of the Querytable (modifiable in Properties)

works by me.

HTH
--
AP

a écrit dans le message de news:
...
Is there a way to refer to Query Tables by name instead of by index
number? Or is there a way to change the index numbers? I have a sheet
with a large number of querys and need to reference them individually,
preferably by name.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help referring to query tables by name

Thank you for the sanity check. Turns out this was just a reminder as
to why sleep is your friend after coding for too many hours straight.
Turns out I was forgetting the blasted underscore in the range name.
DOH!! :P

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
Adding tables in a query J Gui Excel Discussion (Misc queries) 0 February 15th 08 03:49 AM
Web Query from multiple tables jjbf22 Excel Discussion (Misc queries) 0 July 29th 05 03:28 PM
Two Excel tables in MS Query Jamshed Excel Discussion (Misc queries) 0 June 24th 05 12:33 PM
Pivot Tables referring to external data query Excel GuRu Excel Discussion (Misc queries) 4 December 29th 04 06:29 PM
Query Tables Dale Marques Excel Programming 3 June 22nd 04 01:45 PM


All times are GMT +1. The time now is 10:23 AM.

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"