Hi, I want to write variable declaration and set the initial values in one line. I see some examples for that, but it doesn't work in my excel. Here are some examples that failed:
First and last example are taken from official microsoft documentation website [1] [2]
Any suggestion?
Thank you in advance
VBA Code:
Dim longArray() As Long = {0, 1, 2, 3}
Dim longArray As Long() = {0, 1, 2, 3}
Dim longArray = New Long() {0, 1, 2, 3}
Any suggestion?
Thank you in advance