Counting lines of text

srobbins

Registered User.
Local time
, 22:43
Joined
Jun 25, 2006
Messages
11
I'd like to be able to programmatically determine the number of lines of text that will fit in an output print area, given the width (in centimeters) of the area and the font used.

The routine would be called like this:
lines = CountLines(someString, outputWidth, outputFontName, outputFontSize)

Has anyone done anything like this in VBA?
 

Users who are viewing this thread

Back
Top Bottom