![]() |
PowerPoint macro script |
Post Reply
|
| Author | |
Jyellis
Newbie
Joined: 10 Nov 2005 Posts: 1 |
Quote Reply
Topic: PowerPoint macro scriptPosted: 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?
|
|
![]() |
|
Charles
Newbie
Joined: 18 Sep 2005 Posts: 28 |
Quote Reply
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.
|
|
![]() |
|
Post Reply
|
| 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 |