Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find QueryTable Name? 1

Status
Not open for further replies.

ZoomDah

Programmer
Mar 8, 2004
30
0
0
US
I have 2 QueryTables and I need to call them one by one in my code.
How do I "call" those ?

Thanks
 
Something like this ?
For Each qt in ActiveSheet.QueryTables
qt.Refresh False
Next


Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Can I call it separately like qt1 and at2 ?
What is the property, Name (like) ?

Thanks
 
You can call each separately, like this:
ActiveSheet.QueryTables("QueryName").Refresh True
To discover the "QueryName" you need, right click on each related range and choose Data ... properties.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top