ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   copying problems.......... (https://www.excelbanter.com/excel-programming/340659-copying-problems.html)

Raja

copying problems..........
 
i want to copy data from different workbooks(s1,s2) to s3
but without opening the worksheets(s1,s2)..
if the sheets r opened ,it works fine..
if not,it says "error"-subscription out of range..

kindly help me



Jim Thomlinson[_4_]

copying problems..........
 
To copy from a workbook it must be open. The only way around it is to query
the workbook with an ADO DB recordset which is a whole pile of work and
really only applies to certain circumstances. Why not just open the book and
close it when you are done?
--
HTH...

Jim Thomlinson


"raja" wrote:

i want to copy data from different workbooks(s1,s2) to s3
but without opening the worksheets(s1,s2)..
if the sheets r opened ,it works fine..
if not,it says "error"-subscription out of range..

kindly help me




All times are GMT +1. The time now is 01:48 AM.

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