Hi Eminem,
Sorry for the delay in getting back to you.
The problem seems to be with the decimal separation character (.) in english settings and (,) in some european settings( which I assume you are using).
The following code works correctly on my machine
rng.Formula = "15.9+102.45+78";
Could you please let me know the localized version of MS Excel that you are using?
Thanks,
Stephen.
>
>
>>>Hi Eminem,
>>>
>>>This is what I am seeing
>>>
>>>1) The value in cell A1 is =17.9
>>>
>>>2) This shows up as an error but this seems to happen even when you directly open MS Excel and type in "=15,06" as a formula in cell A1.
>>>
>>>Here is the output from my testing
>>>
Sample.zip
>>>
>>>Could you please provide more infomation on your requirements.
>>>
>>>Thanks,
>>>
>>>Stephen.
>>But in my case manual input of formula correctly parsing by Excel Application. If I past the same formula by code - Excel does not correctly recognize it.
>>
>>Attachment file show the problem (run project in debug mode)
>>
>>
ExcelRWProblems_5040.zip
>>
>In addition - formula correctly parsing if numbers in formula have integer type. If type of numbers is double - appear problems