If one has a range of cells containing:
A
1 1
2 0
3 3
4 0
5 5
And you type in a cell: =A1:A4>0 you get a result of {True False True False True}. If, however, you have a VBA function:
and call it as NewFunc(A1:A4>0) you get #Value. How do I set my function up so it evaluates the function in the input.
A
1 1
2 0
3 3
4 0
5 5
And you type in a cell: =A1:A4>0 you get a result of {True False True False True}. If, however, you have a VBA function:
Code:
Public Function NewFunc(myBools As Range)
NewFunc = myBools
End Function
and call it as NewFunc(A1:A4>0) you get #Value. How do I set my function up so it evaluates the function in the input.