Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Pull Data from a closed workbook, without opening it.

Does anyone know the code to use to be able to pull data from a closed workbook, without opening it?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Pull Data from a closed workbook, without opening it.

Harlan Grove posted a function that opens another instance of excel and then
retrieves the value from that closed workbook.

http://google.com/groups?threadm=oZx...wsra nger.com

Joe B. wrote:

Does anyone know the code to use to be able to pull data from a closed workbook, without opening it?


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pull Data from a closed workbook, without opening it.

without opening it?

I believe that opens the workbook, Dave.

Maybe suggesting John Walkenbach's method, or use of ADO or simply putting a
link in a cell (fastest) would be more appropriate.

--
Regards,
Tom Ogilvy


"Dave Peterson" wrote in message
...
Harlan Grove posted a function that opens another instance of excel and

then
retrieves the value from that closed workbook.


http://google.com/groups?threadm=oZx...wsra nger.com

Joe B. wrote:

Does anyone know the code to use to be able to pull data from a closed

workbook, without opening it?

--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pull Data from a closed workbook, without opening it.

I would go with a link in a cell, if the cell in the workbook you ar
looking for is always changeing try using vlookup.

Keith
www.kjtfs.com

Tom Ogilvy wrote:
* without opening it?

I believe that opens the workbook, Dave.

Maybe suggesting John Walkenbach's method, or use of ADO or simpl
putting a
link in a cell (fastest) would be more appropriate.

--
Regards,
Tom Ogilvy


"Dave Peterson" wrote in message
...
Harlan Grove posted a function that opens another instance of exce

and
then
retrieves the value from that closed workbook.


http://google.com/groups?threadm=oZx...wsra nger.com

Joe B. wrote:

Does anyone know the code to use to be able to pull data from

closed

workbook, without opening it?

--

Dave Peterson


--
Message posted from
http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Pull Data from a closed workbook, without opening it.

Harlan corrected me on this one, too. I once posted that it starts another
instance of excel and opens the other file there and retrieves the value.

Actually, it uses the same techniques that John Walkenbach does to retrieve a
value from a closed workbook.

But it wouldn't be necessary to use Harlan's routine in a case where the macro
itself will retrieve the value.

To the OP: Harlan's routine is very nice when called from a worksheet where the
closed workbook can vary (based on another cell--and =indirect() would be used.

And in the most basic sense, I guess I agree with You and Keith--just use a
formula in a cell that would point to the cell you want to retrieve.



Tom Ogilvy wrote:

without opening it?


I believe that opens the workbook, Dave.

Maybe suggesting John Walkenbach's method, or use of ADO or simply putting a
link in a cell (fastest) would be more appropriate.

--
Regards,
Tom Ogilvy

"Dave Peterson" wrote in message
...
Harlan Grove posted a function that opens another instance of excel and

then
retrieves the value from that closed workbook.


http://google.com/groups?threadm=oZx...wsra nger.com

Joe B. wrote:

Does anyone know the code to use to be able to pull data from a closed

workbook, without opening it?

--

Dave Peterson


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Pull Data from a closed workbook, without opening it.

And if the OP wants to use the John Walkenbach's techniques:
http://j-walk.com/ss/excel/eee/eee009.txt
Look for either: GetDataFromClosedFile or GetValue.

Dave Peterson wrote:

Harlan corrected me on this one, too. I once posted that it starts another
instance of excel and opens the other file there and retrieves the value.

Actually, it uses the same techniques that John Walkenbach does to retrieve a
value from a closed workbook.

But it wouldn't be necessary to use Harlan's routine in a case where the macro
itself will retrieve the value.

To the OP: Harlan's routine is very nice when called from a worksheet where the
closed workbook can vary (based on another cell--and =indirect() would be used.

And in the most basic sense, I guess I agree with You and Keith--just use a
formula in a cell that would point to the cell you want to retrieve.

Tom Ogilvy wrote:

without opening it?


I believe that opens the workbook, Dave.

Maybe suggesting John Walkenbach's method, or use of ADO or simply putting a
link in a cell (fastest) would be more appropriate.

--
Regards,
Tom Ogilvy

"Dave Peterson" wrote in message
...
Harlan Grove posted a function that opens another instance of excel and

then
retrieves the value from that closed workbook.


http://google.com/groups?threadm=oZx...wsra nger.com

Joe B. wrote:

Does anyone know the code to use to be able to pull data from a closed

workbook, without opening it?

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pull Data from a closed workbook, without opening it.

Ok, I stand corrected, but then it does incur overhead beyond John's
technique. In any event, I wouldn't use the word "nice" to describe opening
another instance of Excel in a UDF/as part of the calculation chain, but if
the requirement is essential, then it does the job. <g

--
Regards,
Tom Ogilvy

"Dave Peterson" wrote in message
...
Harlan corrected me on this one, too. I once posted that it starts

another
instance of excel and opens the other file there and retrieves the value.

Actually, it uses the same techniques that John Walkenbach does to

retrieve a
value from a closed workbook.

But it wouldn't be necessary to use Harlan's routine in a case where the

macro
itself will retrieve the value.

To the OP: Harlan's routine is very nice when called from a worksheet

where the
closed workbook can vary (based on another cell--and =indirect() would be

used.

And in the most basic sense, I guess I agree with You and Keith--just use

a
formula in a cell that would point to the cell you want to retrieve.



Tom Ogilvy wrote:

without opening it?


I believe that opens the workbook, Dave.

Maybe suggesting John Walkenbach's method, or use of ADO or simply

putting a
link in a cell (fastest) would be more appropriate.

--
Regards,
Tom Ogilvy

"Dave Peterson" wrote in message
...
Harlan Grove posted a function that opens another instance of excel

and
then
retrieves the value from that closed workbook.



http://google.com/groups?threadm=oZx...wsra nger.com

Joe B. wrote:

Does anyone know the code to use to be able to pull data from a

closed
workbook, without opening it?

--

Dave Peterson


--

Dave Peterson



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Pull Data from a closed workbook, without opening it.

I only meant nice when you'd have to use =indirect().

And I agree wholeheartedly about overkill in some (this??) case.

But sometimes answers come from muscle memory--not the grey wet stuff.

Happy New Year.


Tom Ogilvy wrote:

Ok, I stand corrected, but then it does incur overhead beyond John's
technique. In any event, I wouldn't use the word "nice" to describe opening
another instance of Excel in a UDF/as part of the calculation chain, but if
the requirement is essential, then it does the job. <g

--
Regards,
Tom Ogilvy

"Dave Peterson" wrote in message
...
Harlan corrected me on this one, too. I once posted that it starts

another
instance of excel and opens the other file there and retrieves the value.

Actually, it uses the same techniques that John Walkenbach does to

retrieve a
value from a closed workbook.

But it wouldn't be necessary to use Harlan's routine in a case where the

macro
itself will retrieve the value.

To the OP: Harlan's routine is very nice when called from a worksheet

where the
closed workbook can vary (based on another cell--and =indirect() would be

used.

And in the most basic sense, I guess I agree with You and Keith--just use

a
formula in a cell that would point to the cell you want to retrieve.



Tom Ogilvy wrote:

without opening it?

I believe that opens the workbook, Dave.

Maybe suggesting John Walkenbach's method, or use of ADO or simply

putting a
link in a cell (fastest) would be more appropriate.

--
Regards,
Tom Ogilvy

"Dave Peterson" wrote in message
...
Harlan Grove posted a function that opens another instance of excel

and
then
retrieves the value from that closed workbook.



http://google.com/groups?threadm=oZx...wsra nger.com

Joe B. wrote:

Does anyone know the code to use to be able to pull data from a

closed
workbook, without opening it?

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson

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
Is there a way to referance data from or to a closed workbook from Ken C[_2_] New Users to Excel 5 September 23rd 09 06:45 PM
Get Data From Closed Workbook Minitman Excel Worksheet Functions 20 March 18th 08 09:50 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Data from closed workbooks (pull func, indirect.ext, etc ....) [email protected] Excel Worksheet Functions 1 June 22nd 05 03:24 PM
Code for Opening a Closed Workbook scrabtree23[_2_] Excel Programming 3 November 11th 03 03:48 PM


All times are GMT +1. The time now is 12:24 AM.

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

About Us

"It's about Microsoft Excel"