Specify Maximum Rows of Shared Formula with Golang via C++
Possible Usage Scenarios
The default maximum rows of the shared formula are 64. It could be any number, e.g., 1000. The performance of the shared formula changes with different numbers of rows. Therefore, Aspose.Cells provides the GetMaxRowsOfSharedFormula() property that can be used to specify the maximum rows of the shared formula. The shared formula will be split into several shared formulae if the total rows of the shared formula are greater than it, as shown in the following screenshot.

Specify Maximum Rows of Shared Formula
The following sample code explains the usage of the GetMaxRowsOfSharedFormula() property. It sets the maximum rows of the shared formula to 5, adds the shared formula in cell D1 for 100 rows, and saves to the output Excel file. If you extract the contents of the output Excel file and check the sheet1.xml, you will see the shared formula splits after every 5 rows, as highlighted in the above screenshot.
Sample Code