Results 1 to 7 of 7
  1. #1
    New Lounger
    Join Date
    May 2001
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    File name in header/footer

    Hi folks.

    This is my 1st posting to this forum. Hopefully the question is not too silly.

    PowerPoint 2000 SR-1:
    I can't find a file name field which I could put into the header or footer. Something like '&<File>' in Excel or '{FILENAME}' in Word.

    Any idea?

    TIA. Hermann

  2. #2
    Lounger
    Join Date
    Jan 2001
    Location
    San Diego, California, USA
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: File name in header/footer

    Not a funny question. In fact, I have just about knocked myself out trying to puzzle the same thing. I have tried all variations of <file>, &<file>, {file}, and so on...

    In addition to the field code for the file name, I am also trying to discover how to print the contents of the properties dialogue (all tabs), either concurrent or separate to a print job.

    Much thanks in advance,
    Ryan W.

  3. #3
    New Lounger
    Join Date
    May 2001
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: File name in header/footer

    Hi again,

    in the meantime, I found some (partial) answers my question on the web. They all have to do with macros, VisualBasic code and Add-on stuff, which is not really what I want, as I don't have the time for going into this level of detail. If it makes sense to have fields for file information in Word and Excel, why not for PPT?

    :-(

    However, here a solution from Microsoft's KnowledgeBase:

    ----------------------
    SUMMARY
    This article contains a sample Microsoft Visual Basic for Applications macro (Sub procedure) that adds the path and file name to the footer of each slide in a presentation. If you change the name or location of the presentation, you can run the macro again to update the footer.

    see: <A target="_blank" HREF=http://support.microsoft.com/support/kb/articles/Q159/3/65.asp>http://support.microsoft.com/support/kb/ar...s/Q159/3/65.asp</A>
    ----------------------

    HTH. Hermann

  4. #4
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: File name in header/footer

    Perhaps something a little less detailed for your first VBA outing: <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Sub addFileName()
    With ActivePresentation.SlideMaster.HeadersFooters.Foot er
    .Text = ActivePresentation.Name
    End With
    End Sub

    You could replace:
    ActivePresentation.SlideMaster.HeadersFooters.Footer
    with
    ActivePresentation.SlideMaster.HeadersFooters.DateAndTime
    If you wanted the filename to be placed in the Date/Time footer instead of the centered Footer.

    To create the macro:
    Open your presentation.
    Go to Tools, Macro, Visual Basic Editor
    In the Visual Basic Editor
    Go to Insert, Module
    Copy and Paste the code from here into the window.
    Save the file.

    Personally, if I wanted to do this all the time - I'd put this code into the template and create a button to run the Macro. Just a thought.

    Good luck!
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  5. #5
    4 Star Lounger
    Join Date
    Mar 2001
    Location
    Bismarck, ND, USA
    Posts
    451
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: File name in header/footer

    I'm new to VB, too. I tried to follow your directions, but type everything in myself. If I did not press Enter between the "Footer" and ".Text" lines, it would not work. I got the error message "Compile Error: With object must be user-defined type, Object, or Variant."

    Would you take a second and explain that? <img src=/S/dizzy.gif border=0 alt=dizzy width=15 height=15>

    Thanks!
    egghead

  6. #6
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: File name in header/footer

    Hmmm [hmmm] Here goes, the way the macro instructions have been written, they are designed to each go on a separate line. You can write this sort of thing so it all goes on one line - but it wouldn't be as easy to read.
    Did you get the macro to work eventually?
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  7. #7
    4 Star Lounger
    Join Date
    Mar 2001
    Location
    Bismarck, ND, USA
    Posts
    451
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: File name in header/footer

    I pasted your code in, and it worked right away. So I tried typing it in again, same problem. Then I put a hard return between "Footer" and ".Text" so it looked exactly like yours and then mine worked, too. That's why I figured it had to be the hard return. <img src=/S/question.gif border=0 alt=question width=15 height=15>
    egghead

Posting Permissions

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