Hello,
How do I do the following with Aspose.Cells please?
VB.NET code:
Dim startCell as String
Dim endCell as String
startCell = Excel.Application .ConvertFormula(“R” & nFirst & “C” & CStr(nCnt), Excel.XlReferenceStyle.xlR1C1, Excel.XlReferenceStyle.xlA1)
endCell = Excel.Application .ConvertFormula(“R” & nLast & “C” & CStr(nCnt), Excel.XlReferenceStyle.xlR1C1, Excel.XlReferenceStyle.xlA1)
I found
this post but I don’t want to set a Cell with the formula (eg. using Cell(n,n).R1C1Formula property), I just want to convert the formula string to use it elsewhere.
Thank you.
Hi,
Well, you may try to use some static methods for CellsHelper utility class directly for your needs, e.g
CellsHelper.ConvertR1C1FormulaToA1()
Thank you.
Thank you.
I ended it up using it as:
CellsHelper.ConvertR1C1FormulaToA1(formula, 0, 0)
and it seems to work fine.