ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how can i get data from an un_opened excel file using codes (https://www.excelbanter.com/excel-programming/374512-how-can-i-get-data-un_opened-excel-file-using-codes.html)

HF

how can i get data from an un_opened excel file using codes
 
i want to write codes to retrieve data from an unopened excel file. how can
get it? thanks a lot.

Ron de Bruin

how can i get data from an un_opened excel file using codes
 
Hi hf

See
http://www.rondebruin.nl/ado.htm

Or
http://www.rondebruin.nl/copy7.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl



"hf" wrote in message ...
i want to write codes to retrieve data from an unopened excel file. how can
get it? thanks a lot.




Halim

how can i get data from an un_opened excel file using codes
 
HF,

You can try this one :

Sub TESTretrieve()
With Activeworkbook.sheets(1).range("A1")
.FormulaArray = "='C:\[Book1.XLS]Sheet4'!$A$1"
.Value= .Value
End With
End sub

note that file C:\Book1.xls is must be available .!
--

Regards,

Halim


"hf" wrote:

i want to write codes to retrieve data from an unopened excel file. how can
get it? thanks a lot.



All times are GMT +1. The time now is 05:40 PM.

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