We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Where did my formulas go?

My scenario... 1. Read in template.xls. 2. Write data to worksheet within template.xls 3. Calculate 4. workbook.Saveas("newfilename.xls") 5. Open newfilename.xls in Excel 6. calculated cells contain the right numbers but the formulas have gone? Is this by design?

3 Replies

AD Administrator Syncfusion Team December 15, 2005 01:10 AM UTC

This is by design. After a calculation, the value of a formla is returned. If you want to save the formulas back out, then you will have to reset them. Here is a little sample showing one way to do this. http://www.syncfusion.com/Support/user/uploads/Calculate_Excel_db444299.zip


BJ Brian J. Burnett December 15, 2005 08:05 AM UTC

you don''t happen to have this in vb for us old timers? >This is by design. After a calculation, the value of a formla is returned. If you want to save the formulas back out, then you will have to reset them. Here is a little sample showing one way to do this. > >http://www.syncfusion.com/Support/user/uploads/Calculate_Excel_db444299.zip >


AD Administrator Syncfusion Team December 15, 2005 05:06 PM UTC

Here is a VB prject. http://www.syncfusion.com/Support/user/uploads/Calculate_Excel_VB_ef1872af.zip

Loader.
Live Chat Icon For mobile
Up arrow icon