How to remove white space in excel cell

Hi,

I am converting data table into string using output data table and writing that string in excel. But when it is pasting in excel cell it is taking lot of space (white space).how can i remove this blank space?
check this screenshots
1

Kindly help me for the same.

Hi @Mathkar_kunal,

Perhaps within the Write Cell, you could try to replace “finalstring” with finalstring.Replace(",,","")

Hope this helps
Best regards,
Marius

@Mathkar_kunal, Use finalstring.Trim in write cell and check.

2 Likes

Trim work little but still there is some space .
1

because of column AH.Because i am pasting string in AH.

Not working

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