ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Wrap Text in Excel from code (https://www.excelbanter.com/excel-programming/362821-wrap-text-excel-code.html)

lanem

Wrap Text in Excel from code
 
I want to add Wrap Text to one of the cells in my excel spreadsheet. I am
creating this file using asp.net (vb.net). Thanks.

Trevor Shuttleworth

Wrap Text in Excel from code
 
In Excel VBA:

With Selection
.WrapText = True
End With

or maybe

With Range("A1")
.WrapText = True
End With

or just

Selection.WrapText = True

Range("A1").WrapText = True

I don't know how you incorporate that into vb.net

Regards

True


"lanem" wrote in message
...
I want to add Wrap Text to one of the cells in my excel spreadsheet. I am
creating this file using asp.net (vb.net). Thanks.





All times are GMT +1. The time now is 10:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com