Function GetSum(InRange2) As Long
' SumArray
' This sums the elements of Arr and returns
' the total.
Dim N As Long
Dim Total As Long
Dim MaxItems As Integer
MaxItems = UBound(InRange2)
'For N = (InRange2) To UBound(InRange2)
' Total = Total + InRange2(N)
'Next N
GetSum = InRange2(2).Value
'GetSum = Total
End Function
|