Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
HF HF is offline
external usenet poster
 
Posts: 5
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default 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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating hyperlinks to a word file with field codes Bobby Excel Discussion (Misc queries) 0 June 26th 08 01:34 PM
Need codes to extract some data Tom Excel Discussion (Misc queries) 2 October 5th 07 02:29 AM
HOW CAN I CONVERT EXCEL DATA TO BAR CODES? guyinrenton Excel Discussion (Misc queries) 1 September 14th 05 06:10 PM
HOW CAN I CONVERT EXCEL DATA TO BAR CODES? guyinrenton Excel Discussion (Misc queries) 0 September 14th 05 06:02 PM
Word field codes in Excel data file Includetext mranz Excel Discussion (Misc queries) 1 December 7th 04 11:19 PM


All times are GMT +1. The time now is 11:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"