define a range that equals the first row of another range
Richard wrote:
Mike,
You solved first problem I am having with the embeded function.
My Excel book indicated I should use 'application.worksheetfunction' not
just 'worksheetfunction'. The longer expression does not embed.
The problem I'm still having is that I would like to only have to pass one
range through my function, something like this:
sub function modified_vlookup(input_value, search_range, column_heading)
modified_lookup= vlookup(input_value, search_range, match(column_heading,_
first-column-of-search_range)
end function
So you see I still need a way of coming up with
first-column-of-search_range
Application.Index(search_range, 0, 1)
Alan
|