Function TrySum(ParamArray argArr()) As Variant<br/> Dim i As Integer<br/> On Error GoTo errhandle<br/> For i = 0 To UBound(argArr)<br/> TrySum = TrySum + argArr(i)<br/> Next i<br/> Exit Function<br/>errhandle:<br/> TrySum = "错误:有非数字参数"<br/>End Function