Private Sub Command1_Click() Dim a() As String ReDim a(1, 2, 3, 4, 5) MsgBox UBound(a, 1) MsgBox UBound(a, 2) MsgBox UBound(a, 3) MsgBox UBound(a, 4) MsgBox UBound(a, 5) End Sub