Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default text wrapping in excel

hi.

i'm building a program in vb6 on win98, i am using excel to build a
shipping bill, using data i get from my data base, my biggest problem
is that i have a long text field in the DB that i need to insert in
the excel worksheet, i know how to select few adjusting cells, merge
them to one cell, (using a macro), i insert the long text to the cell,
i use a text wrapping macro i builded, but then the cell continues to
span only one row height even if there are 2 or more lines of text
wrapped, here is my problem how do i find how many wrapped lines is
there so i can resize the row to the right height according to the
number of lines?, i know that in excel if you press alt + enter keys
when you write a long text you break the text into new lines, but how
do i find how many rows?

thanks in advance for any help.
gil eiliya.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default text wrapping in excel

Hi gil,

With Worksheets(1).Range("myRange")
.WrapText = True
.Rows.AutoFit
End With

--
Ed Ferrero
http://edferrero.m6.net


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
text wrapping when text is pasted in excel psipg Excel Discussion (Misc queries) 2 December 5th 06 07:25 PM
I am using wrap text in excel, so why isn't all my text wrapping? GatorDawg123 Excel Discussion (Misc queries) 2 May 6th 06 05:52 PM
wrapping text in excel cp Excel Worksheet Functions 5 January 18th 06 07:15 PM
How to set text wrapping in Excel using template? suchi banerjee New Users to Excel 1 April 7th 05 07:43 PM
How do I fix text wrapping in Excel? Ducky88 Excel Discussion (Misc queries) 1 February 18th 05 01:37 AM


All times are GMT +1. The time now is 10:32 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"