::sheet.truncate
Remove unused rows at the bottom of a sheet or reset a recurring input template. By default, TeamOne removes the blank rows below the last row with content. To reset a template, specify how many rows to keep at the top and how many blank rows to add for the next round of input.
Set up the task
Choose Truncate sheet task in TeamOne Configuration. Add each sheet to the task. On the .TEAMONE sheet, list one sheet name per row in column A and leave column B blank for those rows.
-keepRows— Number of rows to keep at the top. Include any frozen rows you want to keep. Leave it out to remove only trailing blank rows.-addRows— Number of blank rows to insert after the last row with content once the sheet has been trimmed.
See Common options for task descriptions and visibility.
Rows below the cutoff are deleted
If you set -keepRows, TeamOne deletes rows below the cutoff even when they contain data. Check the sheet names and the row count before you run the task.
Example
To keep the header on each input sheet and provide 25 blank rows for new entries, add these rows to .TEAMONE. In this example, the header is the only row with content that you want to retain.
| Column A | Column B |
|---|---|
::sheet.truncate | Reset input sheets |
-keepRows | 1 |
-addRows | 25 |
Upload_Actuals | |
Upload_Forecast |
If you need to keep a copy of the current inputs first, run ::sheet.snapshot before the reset.
