Inserting a cell in the header.

  • Thread starter Thread starter Stormy
  • Start date Start date
S

Stormy

We are trying to get a cell in the header of a sheet. Can this be done?
Example would be in our sheet in D9 is TFF. We want whatever is in D9 to go
in the header. I'm not sure this makes sense.
Thanks
Wendy
 
You could do this with a macro linked to the worksheet_change event.

Insert the following code into the macro sheet for the sheet with the
cell if interest.

Private Sub Worksheet_Change(ByVal Target As Range)
For Each Cell In Target
If Cell.Address = "$D$9" Then
ActiveSheet.PageSetup.CenterHeader = Cell.Value
End If
Next Cell
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