Hello,
does anyone know if it is possible to dynamically declare a multidimensional array?
I was thinking about something like:
Thank you![]()
Dim VariableNumber as Integer Dim Array(1 To 5, 1 To VariableNumber) As Variant VariableNumber = 10
Hello,
does anyone know if it is possible to dynamically declare a multidimensional array?
I was thinking about something like:
Thank you![]()
Dim VariableNumber as Integer Dim Array(1 To 5, 1 To VariableNumber) As Variant VariableNumber = 10
I think. You use the redim statement anyway, have a look in the help if that doesn't work.![]()
Dim a(0,0) as variant variablenumber = 10 redim a(5,variablenumber)
Array is a native VBA function -- you don't want to use that as a variable name.![]()
Dim n As Long Dim av As Variant n = 10 ReDim av(1 To 5, 1 To n)
Entia non sunt multiplicanda sine necessitate
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks