VBA: const with array

  • Thread starter Thread starter jfp
  • Start date Start date
J

jfp

Is it possible to use "const" with an array? If so, what is the syntax
for initializing the array?
 
jfp said:
Is it possible to use "const" with an array? If so, what is the syntax
for initializing the array?

No.

I usually decalare a Variant variable and then use the Array
function to initialize it.

Dim varX As Variant

varX = Array(1,2,3,4,5,6,7,8,9)

y = varX(k)
 
Back
Top