Copy excel and paste into WEB

Dear Experts

Need to copy B2:B5 in excel and paste into below WEB column

I can simply Ctrl+C in excel and Ctrl+V in web only once for all

But I am not sure what is the best way to do so in UiPath
Can you give me some idea?

image

image

Expected result, Ctrl+V only once and no need to type in one by one
image

Thank you for your advise in advance

Hi @yangyq10

String.Join(" ", DT.AsEnumerable().Select(Function(row) row("ColumnName").ToString()))

Regards,

@yangyq10

Input:

The image displays a spreadsheet listing different currencies with their respective import and export values. (Captioned by AI)

Output:

Hi @yangyq10

Follow the below steps,
→ Use the Read range workbook activity to read the excel and store in a datatable called DT.
→ Then use the assign activtity and create a variable called Str_Value to store all the values in PURCHASE ORDER NUMBER column. Then use the below expression,

- Assign -> Str_Value = String.Join(" ", DT.asenumerable.select(Function(X) X("PURCHASE ORDER NUMBER").toString).tolist())

→ Then use the Type into activity and give the Str_Value to type the value in the variable in the field.

Note: Change the Column name in the expression as it is in excel file.

Hope it helps!!

1 Like

@lrtetala Thank you~~Its awesome :smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.