LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 345
Default Fitting characters of a font size in a cell width

In my application, printing a route delivery 'book', I form character
strings made up of numerals, special characters such as parentheses and
brackets, and uppercase letter text in Arial font, size 20. (I would rather
NOT use a non proportional font such as Courier). The font size IS needed
for readability. The strings can range from 4 to 20 or 30 characters.

It's important that the entire string shows and is not 'view truncated' by
the contents of the cell to the right of the one holding the string. Is there
some table to look up character widths, or some other method by which I can
calculate the 'width' of the character string to compare it to the column
width which is 27. I can break up the character string if it's too long and
put some of it in the next row.
(the default font for the worksheet is Arial, size 10.)

Visual inspection of the affected cells , after the fact, is not really
feasible. I am looking for a way to calculate the width of the string, and
then use from 1 to ??
rows to hold what has to be read by the delivery staff.

Thanks,
Neal Z






--
Neal Z
 
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
Width of one cell only without disturbing the size of the whole co PepeeLepew Excel Discussion (Misc queries) 1 March 27th 06 05:30 PM
Width of one cell only without disturbing the size of the whole co CLR Excel Discussion (Misc queries) 0 March 20th 06 02:54 PM
Width of one cell only without disturbing the size of the whole co Duke Carey Excel Discussion (Misc queries) 0 March 20th 06 02:50 PM
Repeat characters to cell width David Excel Worksheet Functions 2 May 10th 05 01:23 PM
String width in specified font/size when merging Seb[_4_] Excel Programming 3 October 24th 04 02:06 PM


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