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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible to place cell values into Page Setup Header in Excel?

Status
Not open for further replies.

MCubitt

Programmer
Mar 14, 2002
1,081
GB
Is it possible to use the value of a cell in Excel inside the header of the page setup, effectively providing the heading for the printed report?

thanks



Applications Support
UK
 
I think I can answer my own question.

ActiveSheet.PageSetup.PrintArea = ""
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = "&""Arial,Bold""&12Title Of Report"
.RightHeader = ""
End With



Applications Support
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top