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.
Public Function basSumVal(ParamArray varMyVals() As Variant) As Variant
'Michael Red 12/1/2002
'To return the SUM or a series of values
'Sample Usage:
'? basSumVal(1, 2, 3, 4, 5, 6)
' 21
'? basSumVal(0, 1, 2, 4, 8, 16, 32, 64)
' 127
Dim Idx As Integer
Dim MySum As Variant
For Idx = 0 To UBound(varMyVals())
If (Not IsNull(varMyVals(Idx))) Then
MySum = MySum + varMyVals(Idx)
End If
Next Idx
basSumVal = MySum
End Function