Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default Format Center Header

The value I want for each header is:

Range("C4").Value

Need an example code to see how to make the font bold and increase to
size 20.

Does this have to be a " before print" code, or just any ole sub will
do?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Format Center Header

Sub Cell_In_Header()
With ActiveSheet.PageSetup
.CenterHeader = "&""Algerian,Bold""&20" & Range("C4").Value
End With
End Sub

I threw in the "Algerian" font just for example.

Can be run as is or in BeforePrint............your choice.


Gord Dibben MS Excel MVP

On Wed, 2 Dec 2009 14:49:48 -0800 (PST), "J.W. Aldridge"
wrote:

The value I want for each header is:

Range("C4").Value

Need an example code to see how to make the font bold and increase to
size 20.

Does this have to be a " before print" code, or just any ole sub will
do?


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
Custom format to center Andy Excel Discussion (Misc queries) 1 October 15th 09 05:10 PM
Retrieve Center Header String Ken Hudson Excel Programming 3 September 26th 08 07:18 PM
How can I Left justify the center section of the print header? abohlin Excel Programming 2 March 29th 07 10:14 PM
How do I left justify center section header nick Excel Discussion (Misc queries) 1 September 6th 06 09:30 PM
Named Range in Center Header Joel Mills Excel Programming 6 January 5th 05 08:03 PM


All times are GMT +1. The time now is 11:15 PM.

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"