PowerPoint macro script
Joined: 10 Nov 2005
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?
Joined: 18 Sep 2005
|Quote Reply Posted: 10 Nov 2005 at 11:46|
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:
Dim oTitle As Shape
If .HasTitle Then
Set oTitle = .Title
MsgBox "Please complete this: " & _
MsgBox "You can't fill this in", _
Charles Henry, Creative Director 123PPT.com.
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum