Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default 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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get date/time to wrap (format - wrap text doesn't work)? Alex Excel Discussion (Misc queries) 3 April 4th 23 02:29 PM
How do I stop text from disappearing when I wrap text in Excel? Shavonne Excel Worksheet Functions 0 March 22nd 10 12:38 PM
Excel 2007; even though "Wrap Text" is on the text does wrap? Bruce M[_2_] Excel Discussion (Misc queries) 0 December 31st 09 02:58 PM
Wrap Text with merge cells code Damian Excel Discussion (Misc queries) 0 August 25th 09 05:13 PM
Text not continuing to wrap for large block of text in Excel cell Mandra Charts and Charting in Excel 1 May 15th 06 07:13 PM


All times are GMT +1. The time now is 09:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"