Create range in udf
- From: Cresta <Cresta@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 4 Apr 2008 01:58:00 -0700
Hello
Is it possible for a UDF to dimension a named range to work with inside a UDF,
I need to create a named range so I can pass it into the sumifs function
withing the UDF. I have all the other args for the sumifs but arg1 is dynamic
and this is the bit i'm stuck on.
This is what I have so far.
....
Dim SearchColumn As Range
....
SearchColumn = ???? (To be Sheets(1).Range(cells(1,x%),cells(y%,x%))
....
result = WorksheetFunction.SumIfs(SearchColumn, Column1Range,
Column1Criteria, Column2Range, Column2Criteria)
....
ICTSumIf = result
Any ideas
Thanks
.
- Follow-Ups:
- RE: Create range in udf
- From: Joel
- RE: Create range in udf
- Prev by Date: Re: Copy and paste selected columns between Excel workbooks
- Next by Date: Re: How to make duplicated values unique according to a rule
- Previous by thread: shell - open document
- Next by thread: RE: Create range in udf
- Index(es):