Jul 07 2023 07:16 AM
Hello everyone,
I have some large excel files with formulas that I am trying to copy down via a script and need help finding the right command (need to use online excel so NO VBA). Here is a (greatly shortened) example of what I want to do:
Any help would be most appreciated.
Jul 07 2023 11:43 AM - edited Jul 07 2023 11:56 AM
SolutionThat could be
function main(workbook: ExcelScript.Workbook) {
const sheet = workbook
.getWorksheet("Sheet1")
const lastRowAddress = sheet
.getUsedRange()
.getLastCell()
.getAddress()
const lastRow = sheet
.getRange(lastRowAddress)
.getEntireRow()
.getUsedRange()
lastRow
.getOffsetRange(1,0)
.copyFrom(lastRow)
}
Jul 07 2023 01:08 PM
Jul 08 2023 10:09 AM
@Jeff_Hunt , you are welcome