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?
The routine would be called like this:
lines = CountLines(someString, outputWidth, outputFontName, outputFontSize)
Has anyone done anything like this in VBA?