I have 3 arrays, each contains 3 ranges. I want to store those arrays in one array. I try to do the following:
Function test()
Dim a() As Range
Dim b() As Range
Dim c() As Range
a = getA(dataWorkbook) 'a(1)=Range(...), a(2)=Range(...), a(3)=Range(...)
b = getB(dataWorkbook)
c = getC(dataWorkbook)
Dim allArrays(1 To 3) As Range
' allArrays(1) = a
' allArrays(2) = b
' allArrays(3) = c
test="HELLO"
End Function
However if I uncomment lines with allArrays assignment, the function returns !VALUE instead of "HELLO". What I'm doing wrong?
allArraysare not of theRangetype.