Consulting

Results 1 to 3 of 3

Thread: Data in every page footer

  1. #1
    VBAX Contributor
    Joined
    Apr 2010
    Posts
    182
    Location

    Data in every page footer

    Hi,

    How could I make the data in cells to appear on every page footer as I print the sheet.

    At present I have put the texts that I want to appear on each pages footer at the end of each page.

    But my intention is to put the texts that I want to appear on each page footer once on the sheet and when printed; it to appear on each page.

    I hope I have made my question clear.

    Any help on this would be kindly appreciated.

    Thanks in advance.
    Best Regards,
    adamsm

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    With ActiveSheet.PageSetup
    .LeftFooter = "Some footer text"
    End With
    End Sub
    [/vba]

    This is workbook event code.
    To input this code, right click on the Excel icon on the worksheet
    (or next to the File menu if you maximise your workbooks),
    select View Code from the menu, and paste the code
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    Apr 2010
    Posts
    182
    Location
    Sorry for being late to respond. But thanks for the help XLD. I do really appreciate your help.
    Best Regards,
    adamsm

Posting Permissions

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