I am creating an excel spreadsheet which will eventually be emailed as an attachment. Within the spreadsheet I want to add a formulae to sum a group of fields. No matter what I do the field is always set to 4 when I view it in the email?
x is the end value from a for/next loop and G1 to Gx are the cells I want to sum.
The above code puts the values in the "G" column
Not sure what I am doing wrong or even if this formulae can be used?
Thanks.
B4X:
Dim strY As String
strY = x
SummaryCell.InitializeFormula(6, x+1, "sum(G1:G" & strY & ")")
SummarySheet.AddCell(SummaryCell)
Log( "sum(G1:G" & strY)
x is the end value from a for/next loop and G1 to Gx are the cells I want to sum.
B4X:
SummaryCell.InitializeNumber(6, x, strSummTotalMiles)
SummaryCell.SetCellFormat(SummaryCellFormat1)
SummarySheet.AddCell(SummaryCell)
The above code puts the values in the "G" column
Not sure what I am doing wrong or even if this formulae can be used?
Thanks.