Hi,
I suggest that to use the 'Get first free row on column from Excel worksheet' action to get the blank cell in the specified column, then use the 'Select cells in Excel worksheet' action(End row parameter:%FirstFreeRowOnColumn - 1%) to select the cells to be deleted, and finally use the 'Run VBScript' action to execute the following script to delete the cells.
GetObject("%WorkbookPath%").Application.CommandBars.ExecuteMso "ClearContents"
Regards,
kinuasa
Sample Flow:
SET WorkbookPath TO $'''C:\\Test\\Excel\\SampleBook.xlsx'''
Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: WorkbookPath Visible: True ReadOnly: False Instance=> ExcelInstance
Excel.GetFirstFreeRowOnColumn Instance: ExcelInstance Column: $'''B''' FirstFreeRowOnColumn=> FirstFreeRowOnColumn
Excel.SelectCellsFromExcel.SelectCells Instance: ExcelInstance StartColumn: $'''B''' StartRow: 2 EndColumn: $'''B''' EndRow: FirstFreeRowOnColumn - 1
Scripting.RunVBScript VBScriptCode: $'''GetObject(\"%WorkbookPath%\").Application.CommandBars.ExecuteMso \"ClearContents\"''' ScriptOutput=> VBScriptOutput