Join statements using ADO across separate Worksheets

  • Thread starter gimme_this_gimme_that
  • Start date
G

gimme_this_gimme_that

Is it possible to join worksheets based upon a common column/key over
separate worksheets in the same workbook?

Does anyone have an example query?

Thanks.
 
B

Bob Phillips

If you set the ranges on the separate worksheets as named ranges
(Insert>Name>Define...), you can use standard SQL using the names as the
tables.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
G

gimme_this_gimme_that

How do I define colmns - say I want to join on columns 1 and 2 of
Sheet1 and 2 and 3 of Sheet2?

Do I need a named range for the columns too?

Thanks.
 
B

Bob Phillips

Yes, but if you use dynamic range names, it will only extend as far as
necessary.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top