Wrapping text in Excel

Hi All,

We have a requirement to write the records in Excel Sheet.

Is there any way of wrapping the text while it is being written to Excel in order to avoid extension of the text over the cell border into next columns or truncation of the text.

Kindly help.

Thanks.