Pull function

Pedro Morais

Board Regular
Joined
Dec 5, 2007
Messages
90
Guys,

as I've had trouble with using INDIRECT.EXT, i'm trying to use the pull function and have a stupid question.
I have the VBA code for the function but what do i have to do? just copy into a module in VBA and close, or there's anything else needed to be done so it works?

Cheers
Pedro
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi:

I found this info concerning your question which you might find helful:


Excel provides a very powerful function - INDIRECT. It just lacks the functionality to access closed workbooks. The following is a compilation of common alternative solutions presented in the Excel newsgroups:

Laurent Longre has developed the free add-in MOREFUNC.XLL which includes the function INDIRECT.EXT
You can use it in the same way as INDIRECT. e.g.:
=INDIRECT.EXT(��C:temp[book1.xls]sheet!�A1�)
Note that in this formula you also specify the path/directory information
If you use INDIRECT.EXT with an open workbook it behaves the same way as INDIRECT does
There�re some limitations to this function:

It does not work reliable on all computers. So you have to try it in your individual environment.
INDIRECT.EXT can only return a single cell reference from a closed workbook. So you can�t use it for example as second parameter in a VLOOKUP function:
=VLOOKUP("search_text",INDIRECT.EXT("'C:temp[book1.xls]sheet!'A1:B20"),2,0)
won�t work.

INDIRECT.EXT does not work with defined names within closed workbooks.
If you have to access several closed workbooks your spreadsheet can become slow while re-calculating.

Use SQL.REQUEST:
The usage is described here.
This function is relatively slow and the data has to be organized in a database like structure (that is a single area with field names as top row).
Note: Microsoft does not support this addin anymore.
Use Harlan Grove�s PULL function:
Code can be found here.
The function creates separate Excel application instances to �pull� data from closed workbooks.
This function is more robust, can deal with non-database like layouts and can also deal with cell ranges.

Example usage:
=VLOOKUP("search_text",PULL("'C:temp[book1.xls]sheet!'A1:B20"),2,0)
All these solutions have one common drawback: They’re quite slow. So use them carefully and don’t use them with large cell ranges.

plettieri
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top