Hi there folks!

Would anyone know about Ubound, and if it could tell me how many labels are in a label array? It doesn't matter if it has text in the label caption or not.

My label array is called lblWordLetter, so I tried...



Dim nElements As Long
nElements = UBound(lblWordLetter) - LBound(lblWordLetter) + 1

MsgBox nElements

The problem is I get an error saying "array", and it highlights the word UBound in the code above.

Where did I go wrong? : )

Thanks!