Consulting

Results 1 to 2 of 2

Thread: Excel Custom Headers and Footer

  1. #1

    Question Excel Custom Headers and Footer

    Due to a project requirement, I wanted to create custom headers and footers in Excel.

    I know that I can add custom headers and footers manually using Page Setup but I want to do this using VBA.

    Also, I have noticed that after adding a custom header and footer when I apply any other predefined header in my worksheet then my custom header does not appear again.

    Can someone suggest how to retain the custom headers and footers in the drop down list?

    Thanks in advance.

    Regards,
    Chandan Banga

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Just do it in Excel with the macro recorder switched on, that will generate the necessary 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

Posting Permissions

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