This cannot be done in the normal way. See help on TransferSpreadsheet method. It can however be done using VBA code. It is a lot of work for just megring two spreadsheets. If you really want to do this I'll look out some code for you.<br><br>WP <p>Bill Paton<br><a href=mailto:william.paton@ubsw.com>william.paton@ubsw.com</a><br><a href=
I've done something similar. This might be clumsy, but it does work.<br><br>Export each query to a different Excel workbook (Q1.xls & Q2.xls), then create a new workbook (or template) with two worksheets. <br><br>In sheet1 of the new workbook, write a simple formula to put the contents of cell A1 from Q1.xls into cell A1. Copy that cell, and paste it into the entire range you want to see. Do the same thing with sheet2 and Q2.xls.<br><br>If you have a lot of data, you probably want to convert all the formulas to values. You can easily record a macro to do that (just copy and past special (values). The have the macro do "save as" so you don't write over your original formulas.<br><br>This isn't an elegant solution, but it does work.<br><br>Hope it helps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.