There's also another way of doing it.

VB Code:
  1. Dim MyArray() As String
  2.    
  3.     On Error Resume Next
  4.     MsgBox UBound(MyArray)
  5.     If Err.Number = 9 Then
  6.         Err.Clear
  7.         MsgBox "Array not dimensioned"
  8.     End If
  9.     On Error GoTo MyNormalErrorRoutine