Open Workbook ${CURDIR}${/}Excelfile.xlsx
${Table}= Read Worksheet As Table name=Received data
header=True
Add Table Column ${Table} name=New scolumn values=${List_of_values}
Save workbook
close workbook
This is my robot script and the task passes without any error but column is not added to the table. Please let me know if anything is wrong in the script.
Thanks for your response.
But except for clear table keyword all other keywords i have used are from RPA.Excel.Files library and clear table is available only in RPA.tables library.
Read Worksheet As Table
Read the contents of a worksheet into a Table container.
Allows sorting/filtering/manipulating using the ``RPA.Tables`` library.
You should end up with code similar to this example:
Open Workbook ExcelFile.xlsx
${MyTable}= Read Worksheet As Table
@{MyValues}= Create List Sara Beth Amy
Add Table Column ${MyTable} name=FooBar values=${MyValues}
Create Worksheet New Worksheet
Append Rows To Worksheet ${MyTable}
Save Workbook