I hope this isn't a repeat (I looked all over and couldn't find a straight answer - I'm probably missing something obvious).
If it's possible, how is it done? I'm not trying to output to any cells.
I hope this isn't a repeat (I looked all over and couldn't find a straight answer - I'm probably missing something obvious).
If it's possible, how is it done? I'm not trying to output to any cells.
Yes. Just put parentheses after the return type in the function.
Here is a simple example function and sub using it:
Sub test3()
Dim myarray() As String
myarray = returnarray()
MsgBox myarray(2)
End Sub
Function returnarray() As String()
returnarray = Split("test1, test2, test3", ",")
End Function