Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel Header formatting with a programmed field

Hello, I have the following in my code:
..RightHeader = Format(Range("A2"), "mmmm yyyy")
This returns me the Date and Year in A2. My problem
How can I set this to be at Arial Bold 16pt?
It now defaults to the standard each time I run it.

Thanks
Bob Reynolds


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Excel Header formatting with a programmed field

With ActiveSheet.PageSetup
.CenterHeader = "&""Arial,Bold""&20" & Format(Range("A2"), "mmmm
yyyy")
End With

Tim

"Bob Reynolds" wrote in message
...
Hello, I have the following in my code:
.RightHeader = Format(Range("A2"), "mmmm yyyy")
This returns me the Date and Year in A2. My problem
How can I set this to be at Arial Bold 16pt?
It now defaults to the standard each time I run it.

Thanks
Bob Reynolds




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
I want to use a standard 'Word' field in my Excel header Gail Excel Discussion (Misc queries) 0 November 11th 07 01:18 AM
Conditional formatting in a programmed cell Leeney Excel Programming 7 September 24th 07 05:18 PM
Formatting Excel Cell to a text field [email protected] Excel Programming 1 February 7th 06 03:36 PM
Formatting &[Date] in header Excel 2000 Harley Cooper Excel Programming 1 August 19th 04 01:14 AM
Excel menu programmed in .Net through PIA Avi Farah Excel Programming 0 November 10th 03 02:57 PM


All times are GMT +1. The time now is 03:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"