其实是变通一下,呵呵,但是很有用!
Public Function onCalcFormular(ByVal formularStr As String) As String
Dim tmpSheet As New FarPoint.Win.Spread.SheetView
If formularStr.Trim <> "" Then
tmpSheet.Cells(0, 0).Formula = formularStr
Return IIf(tmpSheet.Cells(0, 0).Text = "#NAME?", "", tmpSheet.Cells(0, 0).Text)
Else
Return ""
End If
End Function |
|