Do you get the error with every formula you try to convert? all of the following work in Excel97:
strFormula = CStr(ActiveCell.FormulaR1C1)
strFormula = "'" & ActiveCell.FormulaR1C1
strFormula = ActiveCell.Formula
MS Knowledge mentions Error 2015 in Excel97 in relation to dates, but nothing in Excel95.
-Mark
Thanks Mark!
Yes, the problem was with formulas with dates in them. I have no problems with other Formulas.
I have tried all yours suggestions without success so I stil need solution to solve this problem.
can you post an example of a formula that gives you an error? I don't have any experience with Excel95, but might be able to figure something out
Mark
Here is an exemple:
in cell A1 is Date or nothing;
in cell A2 is "yes" or "no" or empty
in cell A3 is formula:
=IF(A2 = "No","Some text",CONCATENATE("Text text text text",DAY(A1),".",MONTH(A1),".",YEAR(A1)," Loooooooong, looooooooooong, looooooooooong, looooooooooong, loooooooooooong teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeext"))
If "long text" in formula is shorter, this formula works, but I can not change the text!
Regards,
Andrej
Have you tried assigning a name to the text and using the name instead of the text? (Insert>Name>Define) Or putting the text in an out of the way cell and referencing the cell instead?
Just a couple of thoughts
Mark
Thanks Mark, but i'm still without solution.
The formula is unchangeable for me because it is as is in cell.
Andrej