Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Jan 2001
    Location
    Hemel and/or Luton, UK, Hertfordshire, England
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Filename and Path

    Hello all, I am an IT Trainer [img]/w3timages/icons/clever.gif[/img] who should really know the answer to this, but am struggling.

    Any idea how I can insert (like a field in Word or Excel) the Filename (and path if possible) into a PowerPoint 97/2000 presentation.

    Thanks for your help folks.

    Jon Roberts
    IT Training Consultant
    jonroberts@bigfoot.com

  2. #2
    2 Star Lounger
    Join Date
    Dec 2000
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Filename and Path

    Here's a thought. Make sure the footer is being displayed, by going to the View menu, choosing Header and Footer, then turning on the footer. Next run this macro:
    <pre>Sub PathFileName()
    On Error GoTo errPathFileName
    ActivePresentation.Slides.Range.HeadersFooters.Foo ter.Text = Application.ActivePresentation.FullName
    exitPathFileName:
    Exit Sub
    errPathFileName:
    MsgBox "Problem Setting Filename and path", vbExclamation, "Warning"
    Resume exitPathFileName
    End Sub
    </pre>


    HTH
    (I'm sure someone may have more efficient code, but hey it's too early in the morning)

Posting Permissions

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