Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old December 18th 19, 06:02 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Dec 2019
Posts: 1
Default INDIRECT.EXT function, PULL function

On Friday, May 28, 2004 at 1:32:35 PM UTC+10, paul wrote:
INDIRECT.EXT successfully returns the VALUE (CONTENTS) in
the target cell from an open or closed workbook and works
for SUM() etc., but not an address range for use in say
VLOOKUP() or MATCH() search ranges.
PULL returns a range address but does not work when the
target workbook is OPEN.
I need a solution to obtain a range address from a
workbook (both open or closed) to use in the MATCH or
VLOOKUP functions.
Can anyone help,
Thanks in anticipation

Paul


Hi,

Appreciate this is a dormant thread - but just in case someone is monitoring.

I have tried to implement the pull function as per Harlan's most recent update, but notice that while it works for named ranges consisting of a single cell, it fails for multi-cell ranges.

It looks as if r below is returned as NOTHING regardless of whether the range is single or multi-celled. So the first limb of the if statement is executed regardless.

In the case where the range is a single-cell, the ExecuteExcel4Macro returns the value. But in the case of a multi-cell range, it simply falls over. My guess is that it should get to the second limb of the if statement in this case.

Set r = xlwb.Sheets(1).Range(Mid(xref, n + 1))

If r Is Nothing Then
pull = xlapp.ExecuteExcel4Macro(xref)

Else
For Each C In r
C.Value = xlapp.ExecuteExcel4Macro(b & C.Address(1, 1, xlR1C1))
Next C

pull = r.Value

End If

Any thoughts or suggestions greatl appreciated.

Thanks & regards,

Grant

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
INDIRECT.EXT function, PULL function [email protected] Excel Worksheet Functions 0 January 18th 18 01:58 PM
INDIRECT.EXT function, PULL function [email protected] Excel Worksheet Functions 0 January 30th 15 03:50 PM
Using INDIRECT Function and INDEX Function ChristopherG Excel Discussion (Misc queries) 1 June 10th 09 04:07 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
Problems with PULL function, INDIRECT.EXT and so forth [email protected] Excel Worksheet Functions 4 June 23rd 05 10:02 AM


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

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017