Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a database where some cells are taking almost half the page. Th
cells are all text. I would like to write some code that will go thr and chop down cells over a certain height into multiple cells. I was trying to find a relationship between the number of character and the height, but some of these cells have multiple line breaks i them. Also, I would like to find a way for the code to cut in at intelligen places if possible. any ideas -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could iterate on a cell, splitting it until your RowHeight is at the
desired size. Use Rows(x).EntireRow.AutoFit to get your cell fitting the text nicely in each iteration. -- Rob van Gelder - http://www.vangelder.co.nz/excel "lcoreyl " wrote in message ... I have a database where some cells are taking almost half the page. The cells are all text. I would like to write some code that will go thru and chop down cells over a certain height into multiple cells. I was trying to find a relationship between the number of characters and the height, but some of these cells have multiple line breaks in them. Also, I would like to find a way for the code to cut in at intelligent places if possible. any ideas? --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to trim a text string at "smart" places like a period o
line break -- Message posted from http://www.ExcelForum.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "lcoreyl " wrote in message ... Is there a way to trim a text string at "smart" places like a period or line break? Use the instr function to find the location of the period and then mid to trim it You could write your own function using these to do your smart trim Keith |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Keith Willshaw wrote:
Use the instr function to find the location of the period and the mid to trim it Keith [/b] Yes!!! Thanks!! That's what I was looking for! I searched around in V help looking for something like instr but never found it -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding a string of unknown length in a string of unknown length, Help! | Excel Discussion (Misc queries) | |||
Macro syntax to check string length in a cell | Excel Discussion (Misc queries) | |||
need to know how to control length and height of lines | New Users to Excel | |||
How do I format excel if cell value is = to 0 then row height = 0 | Excel Discussion (Misc queries) | |||
Excel 2002: Format Cell Height/Width | Excel Discussion (Misc queries) |