Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Cell values in Footer

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hello all,

    Does anybody know if it is possible to put cell values in a footer? For example: I need the value of cell A1 of Sheet1 to appear in a footer. In regular sheets you just use =Sheet1!A1 . But such constructions do need work in the footer/header. Anyone? A solution? Thanks in advance!!!

    Raymond

  2. #2
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi Raymond

    Right click on the Excel icon, top left next to file and select "View Code", paste in this.

    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    If Me.ActiveSheet.Name = "Sheet1" Then
    Me.ActiveSheet.PageSetup.LeftFooter = Range("A1")
    End If
    End Sub

  3. #3
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks Dave! It works only for one sheet (Sheet1) like this, but I have the clue how to work with it ... thank you very much!

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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