View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Kirk[_2_] Kirk[_2_] is offline
external usenet poster
 
Posts: 17
Default Problem with Multi-Dimensional Array

I am getting a sub-script out of range error when trying
to populate my multi-dimensional array.

Below is the code for declaring the array as well as the
code to populate the code:
ReDim Preserve AppNames(0 To (ArrayCnter - 1), 0 To
(ArrayCnter - 1), 0 To (ArrayCnter - 1))

..
..
..
AppNames(j, 0) = cmbAppList.Text
AppNames(j, 1) = cmbWPA.Text
AppNames(j, 2) = AppLoc & "\" & cmbWPA.Text & "\" &
cmbAppList.Text

If I have just 2 values, this works fine, but I need it
to capture 3 values. Any ideas as to why this is not
working?

Any help would be appreciated.

Thanks.

Kirk