displaying a cell's value in a page header when printing

  • Thread starter Thread starter Paul James
  • Start date Start date
P

Paul James

Is there a way to display the value in a cell in a custom page header?

(Assume the cell's range is named "CompanyName" and it's located on a
worksheet named "DataEntry").

Thanks in advance.

Paul
 
Paul

Sub CellInFooter()
With Sheets("Data Entry")
.PageSetup.CenterFooter = .Range("Company Name").Text
End With
End Sub

Could also be fitted into BeforePrint code in ThisWorkbook.

Gord Dibben XL2002
 

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