Thanks for your replies SuitedAces!
I see that I was misunderstanding the use of range variable by treating it as an array that I could load.
If functions can't change cell values, and functions can't call subs that change cell values... are there any ways to change cell values in a manner that can be called from a cell in a worksheet?
I tried your code and was only able to make it work in the following fashion. Does arr = rng work? Nice use of Lbound and Ubound. I didn't know it could be used to get the dimensions of a multidimensional array.
It's just that, rng(A1:A9) + Enter <> sin(A1:A9) + Enter, in terms of which element in A1:A9 that function processes.
Although, rng(A1:A9) + CSE == sin(A1:A9) + CSE, in that both process and spit out arrays properly.
I mean, it's not a big deal. Normally one wouldn't use a function by putting inputting an array without CSE.
I just feel like my function would be more complete if it handled exactly as a built-in function.
Bookmarks