Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Posts
    1,418
    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. #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>.

  3. #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
  •