Hi All
Here is what I am trying to do:
I have a variable value in UiPath ‘strName’
I need to paste/append this under a specific column name in an excel sheet ‘column’ name (already have column name)
Any ideas on how to do this?
I think I need to build a datatable and input ‘strName’
I cannot find any info on how to append under a given column header name in excel
Any ideas would be greatly appreciated!
ushu
(Usha kiranmai)
May 27, 2022, 1:32pm
2
@Cameron_Pirrie
If you want to write multiple cell values then you can use data table to write the specific data under a specific column . Please find the below workflow for ref
Example.zip (9.9 KB)
If you want to write in a single cell under a specific column then use can use write cell activity
UiPath.Excel.Activities.ExcelWriteCell Writes a value or formula into a specified spreadsheet cell or a range. If the sheet does not exist, a new one is created with the name specified in the SheetName property. If a value exists, it is overwritten....
Thanks!
This looks good but I have 2 questions:
How to add my Variable into the data table?
How to append the data in excel under a column using the ‘column header name’ (not the cell value)?
@Cameron_Pirrie can you try Text to column activity to achieve this requirement.
Veera_Raj
(Veeraraj Sethuraman)
May 27, 2022, 3:19pm
5
did you tried with add data row ?
ushu
(Usha kiranmai)
May 27, 2022, 3:39pm
6
@Cameron_Pirrie
You can use Add Data Row activity to add data to the data table
Using look up range activity you can find the in which cell the specific header name present. Below that header you can write the data
Please find attached workflow for ref
Example.zip (10.3 KB)