How to remove white space in excel cell


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

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,

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


Trim work little but still there is some space .

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.