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 basSum(ParamArray varMyVals()) As Variant
'Michael Red 3/7/2002
'To return the SUM of a series of values
'Sample Usage:
'? bassum(1, 2.0067, 3)
'6.0067
Dim Idx As Integer
Dim MySum As Variant
For Idx = 0 To UBound(varMyVals())
If (IsMissing(varMyVals(Idx))) Then
GoTo NextVal
End If
If (IsNumeric(varMyVals(Idx))) Then
MySum = MySum + varMyVals(Idx)
End If
NextVal:
Next Idx
basSum = MySum
End Function