Jul 27 2022 07:57 AM
Hi All,
Ive got a workbook saved to a SharePoint folder.
In the workbook is a script. See below. Its the part in bold i need help with.
Basically the script needs to add a header to the sheet and a footer at the bottom of the set of data (row number can change daily).
The script adding the header works fine. I can't get the script to add the footer to the bottom of the list.
Footer needs to be
99, rownumber (which changes)
Jul 28 2022 04:56 AM
Jul 28 2022 05:06 AM
@Jan Karel Pieterse Hi,
Its keyed in column A, in the last row.
But the last row changes every day.
Chris
Jul 28 2022 06:01 AM
@chrisparkinsonarthouse Is this what you intended?
function main(workbook: ExcelScript.Workbook) {
let selectedSheet = workbook.getActiveWorksheet();
let theRow = selectedSheet.getUsedRange().getRowCount();
selectedSheet.getCell(theRow,0).setValue(99);
}
Jul 28 2022 06:12 AM
Amazing, so the script adds 99 to column A at the bottom of the row. Which is great.
Now i need in Column B same row to be the formula =ROW()
.
Is this possible?
Jul 28 2022 07:10 AM
SolutionJul 28 2022 07:31 AM
Jul 28 2022 07:10 AM
Solution