How do I refer to a cell from header

  • Thread starter Thread starter istor
  • Start date Start date
I

istor

How can I customize the header to refer to a specific cell in th
worksheet
 
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim sText As String
With ActiveSheet
.PageSetup.LeftHeader = .Range("A1").Value
End With
End Sub
 

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