excellearnerSF
New Member
- Joined
- Jul 26, 2014
- Messages
- 2
Hi Guys,
Very sorry if this is a stupid question but can't find an answer.
I'm trying to pass a selected range in excel into a function
e.g. =arrayresult(A1:E22)
I've tried multiple permutations from threads I found e.g.
function arrayresult(inputarray)
function arrayresult(inputarray() as variant)
function arrayresult(inputarray() as variant) as variant
function arrayresult(inputarray as variant)
function arrayresult(inputarray as variant) as variant
No Matter what I try
arrayresult=inputarray(1,1)
Always populates as #Value please can you advise what I am doing wrong here
Very sorry if this is a stupid question but can't find an answer.
I'm trying to pass a selected range in excel into a function
e.g. =arrayresult(A1:E22)
I've tried multiple permutations from threads I found e.g.
function arrayresult(inputarray)
function arrayresult(inputarray() as variant)
function arrayresult(inputarray() as variant) as variant
function arrayresult(inputarray as variant)
function arrayresult(inputarray as variant) as variant
No Matter what I try
arrayresult=inputarray(1,1)
Always populates as #Value please can you advise what I am doing wrong here