Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2004, 07:20 PM
Registered User
 
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wraping text to a new row

I am having trouble wraping text to the next row.

My code is:

Private Sub Submit_LNotes_Click()

With Worksheets("Notes")
cLastRow = .Cells(Rows.Count, "H").End(xlUp).Row
.Cells(cLastRow + 2, "H").Value = "Top Number: " & TopNum.Text
.Cells(cLastRow + 3, "H").Value = "Part Number: " & LPartNum.Text
.Cells(cLastRow + 4, "H").Value = " " & LNotes_Box.Text
End With
LNotesForm.Hide

End Sub

In my third cell that gets information inserted into it, the text may be longer that one row. How do I get this to wrap the text onto the next row so that it stays visible. When I use the wrap text option, under Format Cells it wraps the text but you can only see it if the cell is selected. Is their a way to wrap the text onto the next row?

Thank you,
Morry



 
Old February 25th, 2004, 12:35 PM
Authorized User
 
Join Date: Feb 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you tried autofit on the row to make the problem cell taller?

Dave
 
Old February 27th, 2004, 01:16 PM
Registered User
 
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried to use auto fit and it works to see the data but the problem is that i don't want the column next to it to be adjusted. Do you know of anyway i can just have the data wrap to the next row.

Thank you for your help
Morry

 
Old February 27th, 2004, 03:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Provided you have no values in the cells below, try using Merge Cells from the Format Cells menu.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to import a text file w/t changing row order lxj034000 SQL Server 2000 1 July 12th, 2007 07:04 AM
To retrieve a row by giving row number prad_a MySQL 1 March 22nd, 2007 11:20 PM
how to display image and text in a same table row faisal bashir ASP.NET 1.0 and 1.1 Basics 0 August 9th, 2005 02:03 AM
Read a column and Search Row by Row in another col AyatKh Excel VBA 2 January 26th, 2005 12:02 PM
Audit Trigger on Row with Text Column keithmdw SQL Language 5 June 28th, 2004 04:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.