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

B

Bruce

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?
 
P

PPTMagician

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
 
B

Brian Reilly, MS MVP

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
 
B

Brian Reilly, MS 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
 
G

Glen Millar

Thanks Brian. It's Brianised behind a button.

--

Regards,

Glen Millar
Microsoft PPT MVP
www.powerpointworkbench.com
Australia

Please, tell us your:
PowerPoint version,
If you are using vba, or
Anything else relevant!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top