K
Keith
Hi,
It has been years that I’ve been looking for the following, and I’m still
looking.
I have a function that will be used in a spreadsheet. I want to have one
range (Range1) be the input range, with the result provided in a second range
(Range2). The function call would be this….
Public function MyRangesFunction (Range1 as range, Range2 as range)
Some code here
MyRangesFunction = some_value (wish it could be a specified range)
End function
The only way I’ve been able to do this is via a subroutine and some fancy
coding that speaks directly to the active sheet, etc.
Is there any way that I can easily return a range from a function?
Thank you,
Keith
It has been years that I’ve been looking for the following, and I’m still
looking.
I have a function that will be used in a spreadsheet. I want to have one
range (Range1) be the input range, with the result provided in a second range
(Range2). The function call would be this….
Public function MyRangesFunction (Range1 as range, Range2 as range)
Some code here
MyRangesFunction = some_value (wish it could be a specified range)
End function
The only way I’ve been able to do this is via a subroutine and some fancy
coding that speaks directly to the active sheet, etc.
Is there any way that I can easily return a range from a function?
Thank you,
Keith