Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Page Header from a cell in bold

Hi,

I want to print a page header with the value of cell G1.
Is it possible to have it in Bold and size 14?
Thanks
Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Page Header from a cell in bold

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet.PageSetup
.LeftHeader = "&""Arial,Bold""&14 " & _
Activesheet.Range("G1").Value
End With
End Sub

If you don't know about events, see Chip Pearson's page on this

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy


Paul wrote in message
...
Hi,

I want to print a page header with the value of cell G1.
Is it possible to have it in Bold and size 14?
Thanks
Paul




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Page Header from a cell in bold

Thank you very much Tom. It works great
Regards & Good-weekend
Paul


"Tom Ogilvy" schreef in bericht
...
Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet.PageSetup
.LeftHeader = "&""Arial,Bold""&14 " & _
Activesheet.Range("G1").Value
End With
End Sub

If you don't know about events, see Chip Pearson's page on this

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy


Paul wrote in message
...
Hi,

I want to print a page header with the value of cell G1.
Is it possible to have it in Bold and size 14?
Thanks
Paul






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
Link page header with cell contents Matthew Excel Worksheet Functions 8 May 1st 07 06:22 PM
How do I make a header row appear at top of each page (not cell#) Crazy4Dogz Excel Discussion (Misc queries) 3 March 28th 06 10:51 PM
Join bold and non-bold text in one cell bkincaid Excel Discussion (Misc queries) 3 March 21st 06 12:58 AM
How to apply both Italic & Bold in Header & Footer? Regina Man Excel Discussion (Misc queries) 1 September 26th 05 09:35 AM
Same Cell Header For Every Page localhost Excel Discussion (Misc queries) 1 November 26th 04 02:40 PM


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