View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
count count is offline
external usenet poster
 
Posts: 64
Default How to calculate cell's contents printable width?

Hi,
Task at hand is to achieve this effect:
Short Company Name....................Meredith Rockefeller
Long Company Name Truncated If Nece.......Judy Short

Trival task in Word but how to do it programatically in Excel?
Components I think I need are calculations of printable width of cell
contents.
I then do my sums and take as much of Company Name and dots "........." to
fit a cell, given length of the Contact Name.

Other suggestions are warmly welcome :)
Paul