Consulting

Results 1 to 7 of 7

Thread: how to add my company logo as footer on every sheet vba.

  1. #1
    VBAX Tutor
    Joined
    Sep 2009
    Posts
    231
    Location

    how to add my company logo as footer on every sheet vba.

    Hi All,

    How can i add my company Logo as footer on every page through vba.

    that is on every page if data is on more than one page the logo is added for 2nd page.

    actually am adding it on every sheet and i have somtimes to insert lines so that the logo is display on the footer of every page.

    thanks for the help in advance.

    see example attached .please preview to see the logo it has been put for every page but place on the sheet manually.
    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Just put it in the Footer, View>Header and Footer...
    ____________________________________________
    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 Tutor
    Joined
    Sep 2009
    Posts
    231
    Location
    Hi Bob,

    The logo is in shapes but not written. It is not written. Written is easily place on the footer.

  4. #4
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,728
    Location
    In pre-2007 Excel, footers did not have an easy way to put a graphic into the footer.

    It's a lot easier with 2007

    Paul

  5. #5
    VBAX Tutor
    Joined
    Sep 2009
    Posts
    231
    Location
    Hi ,

    But in my company we all use excel 2003. is there not a way to do this in VBA please .

  6. #6
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Only if you are prepared to change the footer style to text.....
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  7. #7
    VBAX Expert JP2112's Avatar
    Joined
    Oct 2008
    Location
    Astoria, NY
    Posts
    590
    Location
    Rewrite this code to loop through each sheet in the workbook (after the first).

    [VBA]ActiveSheet.PageSetup.CenterFooterPicture.fileName = _
    "C:\MyCompanyLogo.gif"[/VBA]
    Regards,
    JP

    Read the FAQ
    Getting free help on the web
    My website
    Please use [vba][/vba] tags when posting code

Posting Permissions

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