As you can see,for few columns,manaully the column/row size has to be adjusted as the Text is larger.
Any inputs if that can be controlled from code??????
If you want to have the delimiters lined up, then you can format the fields to a specific length.
Add a zero to the front to make the strings right justified w/r/t the delimiter.
I used the string length function and a max/min to find the length of the longest string, then added one to separate one column from the next.
I also removed your redundant transpose an transpose input to the write spreadsheet function ( 2 transpose = no transpose:) )
Your while loop would only ever run once based on the comparison you used, it was not needed so I removed that too.