Is there an easy way that I can write column headers in a cell range at once without having to use a “Write Cell” activity for each column ?.
I know there is the Write Range activity but it only works with DataTables as a value.
Any recommendations in this regard?
Yoichi
(Yoichi)
2
Hi,
Although it might not be very good solution, the following step will work.
-
Open xlsx file using Excel Application Scope.
-
Store header data which is separated by chr(9) in clipboard using Set To Clipboard.
-
Select cell which header starts from using Select Range.
-
Send hotkey Ctrl+v to the worksheet (or specific cell if possible).
If we have header information as array or list. String.Join is useful in this case.
Regards,