G Guest Oct 6, 2006 #1 i want to write codes to retrieve data from an unopened excel file. how can get it? thanks a lot.
R Ron de Bruin Oct 6, 2006 #2 Hi hf See http://www.rondebruin.nl/ado.htm Or http://www.rondebruin.nl/copy7.htm
G Guest Oct 7, 2006 #3 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 .!
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 .!