Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the advice. I'm now struggling to understand how to define
the external range. So far I have this but the result is "#VALUE!" Function MyLookUp(Acronym As Range, Fieldname As Range) As Variant Dim R21Data As Range Dim R21Fields As Range Dim wbk As Workbook Set wbk = Workbooks.Open(Filename:= _ "http://intranet/yesterday/Report21.xls") Set R21Data = wbk.Worksheets("Data").Range("$A$7:$DV$1954") Set R21Fields = wbk.Worksheets("Data").Range("$A$7:$DV$7") MyLookUp = Application.VLookup(Acronym, R21Data, Application.Match(Fieldname, R21Fields, 0), False) End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Possible -- a custom format on text, similar to a VLOOKUP() function? | Excel Programming | |||
Custom function to simplify vlookup formula | Excel Programming | |||
Custom Function VLookup | Excel Discussion (Misc queries) | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
Adding a custom function to the default excel function list | Excel Programming |