How to copy column data from excel and paste in a web browser in single line format

Question - How to copy column data from excel and paste in a web browser in single line format ?

Example -
image

Regards
Naman

Hi @Naman_Arora ,

In the image shown, is it the input or the expected output?

Regards,

Yes, expected output.

I have used assign activity first to record column data into string variable - dt2.AsEnumerable.Select(Function(column) column.Field(Of String)(“Fruits”)).ToList. Then I have used send hotkey activity to paste the same into browser popup but insteand of pasting in a single line it’s pasting like this - Apple Mango Orange.

Regards
Naman

Hi @Naman_Arora ,

Try this:

Join(environment.newline,dt2.AsEnumerable.Select(Function(column) column.Field(Of String)(“Fruits”)).ToList)

Hi @Harshith_Adyanthaya

I tried with above code but I’m getting this.

image

Regards
Naman

@Harshith_Adyanthaya

I have assigned variable type to -

image

Regards
Naman

String.Join(environment.newline,dt2.AsEnumerable.Select(Function(col) col(“Fruits”).Tostring).ToList)

Try this.

Output type should be String.

@Harshith_Adyanthaya

Still getting the same
image

yes output type is string only -
image

Regards
Naman

@Naman_Arora ,

As @Harshith_Adyanthaya mentioned, use string.join instead of just join

Regards

1 Like

@Naman_Arora

Yes, use String.Join as mentioned previously.

String.Join(environment.newline,dt2.AsEnumerable.Select(Function(col) col(“Fruits”).Tostring).ToList)

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