Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use cell value & format it in the header?

Status
Not open for further replies.

UongSaki

Technical User
Nov 15, 2003
65
US
How do I get Excel to put the value in a cell (AA1) from all active worksheets into the header and format it to Arial, Bold 18 pts?


Private Sub Workbook_BeforePrint(Cancel As Boolean)

ActiveSheet.PageSetup.CenterHeader = ""

ActiveSheet.PageSetup.CenterHeader = "&""Arial,Bold""&18Value from cell AA1"

End Sub

Thanks you,

Saki
 
Thank you for pointing me to the right Forum. I found it in thread707-935461.

Thanks,

Saki
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top