I want to create array in sheet by VBA. I am trying using kind of Range.Formula = "={values}" but it becomes "=@{values}" which doesn't produce desired array (please see attached image).
Any solution please? TIA.
Here is sample code:
Any solution please? TIA.
Here is sample code:
VBA Code:
Sub xx()
Dim x, y
x = Array(3, 4)
y = Join(x, ",")
Range("A1").Formula = "={" & Join(x, ",") & "}"
End Sub