123PPT provide royalty free PowerPoint templates, video backgrounds for PowerPoint, presentation photos, sound effects, PowerPoint music, and custom presentation Services.
Return to The Presenters Forum Home Page The Presenters Forum Home Page > Ask the Experts > Help with my Presentation
  New Posts New Posts
  FAQ FAQ  The Presenters Forum Search   Register Register  Login Login

PowerPoint macro script

 Post Reply Post Reply
Author
Message
  Topic Search Topic Search  Topic Options Topic Options
Jyellis View Drop Down
Newbie
Newbie


Joined: 10 Nov 2005
Posts: 1
  Quote Jyellis Quote  Post ReplyReply Direct Link To This Post Topic: PowerPoint macro script
    Posted: 10 Nov 2005 at 06:14
I want a dialog box to prompt my user to enter Text in the footer of the Master slide when the template is opened? Is it possible? If so can you give me the code?
Back to Top
Charles View Drop Down
Newbie
Newbie


Joined: 18 Sep 2005
Posts: 28
  Quote Charles Quote  Post ReplyReply Direct Link To This Post Posted: 10 Nov 2005 at 11:46
Hi Jyellis,

seems we're at an advanced level here, so i cut through the basic stuff.

PowerPoint treats everything inserted on the slide as a shape. So for example, if the shape was an ActiveX control, you might want to access & manipulate the properties of the control at run-time through a macro.

I would approach the problem in a very simple way Jyellis, using the TitleProperty Jyellis to reference the box as you could then use the MsgBox to prompt your user to fill in the Footer.

You will need to navigate to the Master Slide View. My advice is to delete the existing footer text box and create a new one to reference by name.

Declare an object variable to store the reference (for example, Dim oTitle As Shape)

Perhaps use something like:


Sub UseTitleProperty()

Dim oTitle As Shape
With ActivePresentation.Slides(1).Shapes

If .HasTitle Then
Set oTitle = .Title
MsgBox "Please complete this: " & _
oTitle.TextFrame.TextRange.Text, _
vbInformation
Else
MsgBox "You can't fill this in", _
vbExclamation
End If

End With

End Sub
Charles Henry, Creative Director 123PPT.com.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.53 [Free Express Edition]