LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default GetValue to extract data from closed files


For a wide variety of purposes, I want to be able to extract data from
specified locations of closed files. Direct cell links work on closed
files, but this seems too inflexible when there are subsequent changes
in requirements. Sadly, the Indirect formula, which allows
flexibility, works only on open worksheets. (It would be of
significant benefit if Microsoft made Indirect work on closed files,
but that's another story)

John Walkenbach refers to an XLM macro which extracts data from a
closed file:

http://www.j-walk.com/ss/excel/tips/tip82.htm

Unfortunately this macro cannot be used in a worksheet formula,

I'm looking for help flexibly applying this GetValue macro to extract
data from multiple hardcoded source and target locations (different
source files). Essentially I'd like a sub which could be adapted on
the fly to simply add new source and target locations. Could someone
please help by providing code which shows how to place source1 and
source2 values (different locations in files) into target1 and target2
locations in a single file by running a macro. I'd like the macro to
be simply adaptable for adding new source3 and target3 code, etc.

[If the source and target locations could be specified in spreadsheet
cells then that would be the ideal but this seems impossible for closed
files.]

Many thanks,


--
John James
------------------------------------------------------------------------
John James's Profile: http://www.excelforum.com/member.php...o&userid=32690
View this thread: http://www.excelforum.com/showthread...hreadid=531126

 
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
GetValue - Closed Workbook? JMay Excel Discussion (Misc queries) 2 November 3rd 08 04:40 PM
Getvalue from closed workbook Wes Excel Discussion (Misc queries) 1 January 27th 08 07:48 PM
Update DDE data from closed files ORLANDO V[_2_] Excel Discussion (Misc queries) 0 December 13th 07 09:59 PM
Extract Data from Multiple Excel Files Steven Excel Discussion (Misc queries) 1 November 2nd 06 04:58 PM
How to extract data from a wooksheet in a closed workbook kuansheng Excel Worksheet Functions 2 February 15th 06 03:46 AM


All times are GMT +1. The time now is 11:39 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"