Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim myString As String
Dim myAry() As String
Dim myCount As Long
myString = "one two three"
myAry = Split(myString, " ")
myCount = UBound(myAry) - LBound(myAry) + 1
MsgBox myCount
Public Function basNumAryElem(MyAry() As Variant) As Long
'Michael Red 11/22/02
Dim MyProd As Double
Dim Idx As Integer
On Error GoTo ErrTrap
MyProd = 1
Idx = 1
While True = True
MyProd = MyProd * UBound(MyAry, Idx)
Idx = Idx + 1
Wend
ErrTrap:
basNumAryElem = MyProd
End Function
Public Function basTestumAryElem() As Long
Dim MyArray(2, 3, 4, 5, 6) As Variant
basTestumAryElem = basNumAryElem(MyArray())
End Function