Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Posts
    1,412
    Thanks
    1
    Thanked 0 Times in 0 Posts

    VBA Code-Filename In Header/Footer/Cell (2000)

    Not to rehash an old topic, but does someone have some good VBA code to insert the current filename in a (1) header/footer, and/or a (2) cell?
    Thanks,
    Jeff

  2. Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Kortrijk, Belgium
    Posts
    571
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: VBA Code-Filename In Header/Footer/Cell (2000)

    Just search for 'filename in header' and you will find many previous posts dealing with the subject. John Walkenbach has an interesting add-in that you can find <A target="_blank" HREF=http://www.j-walk.com/ss/excel/files/addpath.htm> here </A>.

  4. #3
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: VBA Code-Filename In Header/Footer/Cell (2000)

    Something like this:

    <pre>Worksheets("Sheet1").PageSetup.centerheader = ActiveWorkbook.FullName
    </pre>

    Legare Coleman

Posting Permissions

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