+ Reply to Thread
Results 1 to 2 of 2

Inserting a cell in the header.

  1. #1
    Stormy
    Guest

    Inserting a cell in the header.

    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



  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1