Autofit custom header top margin to text size

B

Breck

I have written a macro to to enter 2 lines of text into a custom header.
This macro also allows the font size to be adjusted independently for each
line of text i.e. font size of 20 on the first line and font size 14 on the
second line. Is there a way to calculate the height of the 2 lines of text
and then use this calculation to adjust the top margin so that the custom
header is neither too small which would cut off some of the header or to
large which would waste space?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top