I am fairly new to VBA, so this may be a simple question but here goes.
I would like to initialize an entire array myArray, say of integers, in VBA. I k
myArray
Fancy way to put @rdhs answer in a function:
Function arrayZero(size As Integer) arrayZero = Evaluate("=IF(ISERROR(Transpose(A1:A" & size & ")), 0, 0)") End Function
And use like this:
myArray = arrayZero(15)