+ Reply to Thread
Results 1 to 4 of 4

Header Footer

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Header Footer

    I have a workbook with multiple worksheets; among those I have two worksheets, each of them has a different Header/Footer.
    I named those HeaderFooterA and the other I have named HeaderFooterB.
    When working on a certain Worksheet, say Sheet1, I would like to have a macro which would allow me to select the option for applying either HeaderFooterA or HeaderFooterB to Sheet1.
    Could anybody help on this?
    Thank you

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Header Footer

    This should do it:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Header Footer

    JBeaucaire,
    It works!, thank you; there is one thing though:
    Both Headers have a logo in the Left Header; both are noted as &[Picture]. The macro won't adjust the logo, it keeps the way it was before.
    Any idea on this?
    Thanks

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Header Footer

    From the few minutes I've spent Googling your question.... "Excel vba copy header picture" ... it seems like the picture in a header can't be copied, it can only be inserted anew from it's original position on the hard drive, then the display parameters edited.


    Maybe: http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 07-23-2013, 10:36 AM
  2. Replies: 5
    Last Post: 03-19-2012, 06:14 PM
  3. [SOLVED] Header & Footer
    By RAJEEV CHADHA in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-14-2005, 09:06 AM
  4. [SOLVED] Header & Footer
    By RAJEEV CHADHA in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-13-2005, 05:06 AM
  5. [SOLVED] header footer
    By M&A_Jack in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2005, 04:06 PM

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