How do I insert the file name in a Powerpoint text box?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wish to insert the file name into a text box within a PowerPoint
presentation. This can be done in Excel and in Word but I can't determine how
to accomplish in PowerPoint. Anybody know how?
 
Hi,

PowerPoint doesn't have autotext like Word. The closest it comes is being
able to put the date in the footer. Click on View, Header and Footer.

Glenna
 
In addition to Glenna's suggestion, you could do this with a simple
VBA routine. I'm surprised Steve and I haven't included one of these
in our PPTools Addins. I created one a while ago.

Brian Reilly, PowerPoint MVP
 
Glen,
Seemed too simple so here's a freebie for y'all (Glenna made me say
y'all) so it's named after her (g).

Option Explicit

Sub Glenna_Y_all()
'This utility writes the current date and time to the
'HeadersFooters textbox on the computer's clock. Also adds full
path and file name.
'Updated 1-20-2005
'Developer: Brian Reilly

Dim dteDate As Date
Dim strUser As String
Dim strFileName As String

dteDate = Now()
strFileName = ActivePresentation.FullName
With ActivePresentation.Slides.Range.HeadersFooters
With .DateAndTime
.Text = "Last saved " & dteDate & " as " & strFileName
.Visible = msoTrue
End With
End With

End Sub

Brian Reilly, PowerPoint MVP
 
Back
Top