Functionで配列を返す - VBA
配列を返す関数の記述の仕方
Function sayHelloWorld() As String() Dim testArr(1) As String testArr(0) = "Hello" testArr(1) = "World" sayHelloWorld = testArr End Function
配列を返す関数の記述の仕方
Function sayHelloWorld() As String() Dim testArr(1) As String testArr(0) = "Hello" testArr(1) = "World" sayHelloWorld = testArr End Function