Dynamic multi-dimensional array
Posted on 2011-09-16
I am trying to use a multi-dimensional array where only one of the dimensions I will know at the start of the project.
I've defined it in a module as:
Public strXMLData(0, 5) As String
Within a function, I (try to) then populate the array. However, I'm getting an error on the line:
ReDim Preserve strXMLData(intXMLCount, 6)
intXMLCount is incrementing.
I feel very comfortable with single dimension arrays but seem to always stumble on multi....