Solved

Wrap Text in Excel through VBA

Posted on 2011-02-27
4
1,182 Views
Last Modified: 2012-06-21
How could i have Wrap Text feature while fulfilling text in Excel Cell through piece of VB code.
0
Comment
Question by:srikanthv2322
4 Comments
 
LVL 65

Accepted Solution

by:
RobSampson earned 250 total points
ID: 34993636
Hi, the WrapText property can be set on the ActiveCell using
ActiveCell.WrapText = True

Regards,

Rob.
0
 
LVL 39

Assisted Solution

by:nutsch
nutsch earned 250 total points
ID: 34997560
And to do a return in filling a cell via vba, you can use vbcrlf or chr(10), as in

[a1].value="string" & vbcrlf & "string 2"

Thomas
0
 
LVL 24

Expert Comment

by:broomee9
ID: 35225367
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question