|
-
Apr 14th, 2017, 02:55 PM
#1
Thread Starter
PowerPoster
[RESOLVED] Find out how many labels are in a label array?
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|