it might be simple, but I don't know !!!
How I can calculate the string "3 + 5" ??
Excel has Application.Evaluate ("3 + 5")
MSScriptControl has ScriptControl.Eval ("3 + 5")
And OOo Calc ????
Thank you

Function Eval(X As String) As Variant
Dim oCell As Object
oCell = ThisComponent.getSheets().getByIndex(0).getCellByPosition(10, 0)
oCell.formula = "=" & X
Eval = oCell.value
End Function
lader wrote:
- Code: Select all Expand viewCollapse view
Function Eval(X As String) As Variant
Dim oCell As Object
oCell = ThisComponent.getSheets().getByIndex(0).getCellByPosition(10, 0)
oCell.formula = "=" & X
Eval = oCell.value
End Function
Users browsing this forum: No registered users and 24 guests