Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.links
|
|||
|
|||
![]()
I would avoid querying a querytable in the same file.
For one thing, I think it will be querying the copy of the file on disc, not the open version in which you have just refreshed the first query in. I would refresh the first query using a macro, give its result range a name and have your formulas reference this range in VLOOKUPs to find the relevant data. The macro might be something like: With Worksheets("WhereThe1stQueryIs").Range("A1").Query Table .Refresh BackgroundQuery:=False With .ResultRange .Resize(,.Columns.Count+2).Name = "QueryPlus" End With End With Then your formulas can do VLOOKUPs in the range QueryPlus which will be the results of the query plus the extra columns. Bill Manville MVP - Microsoft Excel, Oxford, England No email replies please - respond to newsgroup |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
unhide menu bar in excel - just disappeared | Setting up and Configuration of Excel | |||
Querying a range within Excel | Excel Worksheet Functions | |||
import excel worksheet info to contact sub-folder | Excel Discussion (Misc queries) | |||
Can I link Contact info into an Excel doc? | Excel Worksheet Functions |