Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi BeefmanSteve,
Sub Tester() Dim Arr As Variant Dim NumOfElements As Long Arr = Array("aaa", "bbb", "cccc") NumOfElements = UBound(Arr) - LBound(Arr) + 1 MsgBox NumOfElements End Sub --- Regards, Norman "BeefmanSteve" wrote in message ... I'm programming VBA in Excel 2003. I wish to index through a loop for each element in an array. But I need to refer to the elements by their index number, not their value as a string. How can I find the number of elements in an array of strings? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Maximum number of elements in array | Excel Discussion (Misc queries) | |||
Counting the Number of Elements in an Array | Excel Discussion (Misc queries) | |||
How to find number of pairs of strings from list of strings? | Excel Worksheet Functions | |||
What is the maximum allowed number of data elements in a data array? | Excel Discussion (Misc queries) | |||
Counting the number of elements within an array that have data | Excel Programming |