ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Join statements using ADO across separate Worksheets (https://www.excelbanter.com/excel-programming/376780-join-statements-using-ado-across-separate-worksheets.html)

[email protected]

Join statements using ADO across separate Worksheets
 
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.


Bob Phillips

Join statements using ADO across separate Worksheets
 
If you set the ranges on the separate worksheets as named ranges
(InsertNameDefine...), you can use standard SQL using the names as the
tables.

--
HTH

Bob Phillips

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

wrote in message
ups.com...
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.




[email protected]

Join statements using ADO across separate Worksheets
 
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.


Bob Phillips

Join statements using ADO across separate Worksheets
 
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)

wrote in message
oups.com...
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.





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com