I want to use the method set formula dynamically to a range, if i add cells reference other sheets to formula, the cell in other sheets cannot be changed dynamically.
We were able to observe this issue. The cells that refers to other sheet inside the shared formula do not change.
We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.
We have evaluated your issue further. Well, it's the limitation of MS Excel that when shared formula is referred to other sheets, the range would not be
changed/ extended dynamically. So, it is not an issue with the product.
Thanks for your screenshots and MS-Excel steps and using Aspose.Cells.
We have logged your comment in our database for further investigation and consideration of this issue. We will evaluate it and let you know if such a feature could be implemented by Aspose.Cells as it behaves in MS-Excel.
Once, there is some fix or other update for you, we will let you know asap.
Please save the file after 3 steps, and unzip the generated xlsx file,
you will find there is no shared formula in sheet1.xml. MS Excel copies the
formula to each cells.
Please try the following code:
C#
var book = new Workbook(@“D:\Filetemp\no+formula.xlsx”);