Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Autofit custom header top margin to text size

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?

Reply
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
header margin Leon Meyers Excel Discussion (Misc queries) 2 January 23rd 11 05:03 PM
Link margin size and document size to all sheets laitkens Excel Discussion (Misc queries) 1 September 5th 08 09:13 PM
Internal margin for row height autofit Ryan Excel Discussion (Misc queries) 1 April 25th 07 03:00 AM
Can you link a custom property to an Excel custom header text? LouErc Setting up and Configuration of Excel 0 November 8th 05 04:58 PM
header in right or left margin? Michelle Excel Discussion (Misc queries) 2 January 26th 05 04:44 PM


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