Custom Page Headers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to show the contents of a cell in the page header when I print the
document. Does anyone have a solution for this?
 
Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.CenterHeader = ActiveSheet _
..Range("A1").Value
End Sub

---
Place this macro in the "ThisWorkbook" module.

HTH
Jason
Atlanta, GA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top