Article ID: 162612
Article Last Modified on 10/11/2006
Sub AddTitleSlide()
' Change this string to the title you want to use for your slide.
Const stringMyTitle As String = "This is a Title"
Dim slideObject As Slide
Dim longSlideCount As Long
' Determine how many slides are in the presentation.
longSlideCount = ActivePresentation.Slides.Count
With ActivePresentation.Slides
' Insert a slide at the end of the presentation using the Title
' Slide AutoLayout.
Set slideObject = .Add(longSlideCount + 1, ppLayoutTitleOnly)
End With
' Inserts the text you want to use for the title.
slideObject.Shapes.Title.TextFrame.TextRange.Text = stringMyTitle
End Sub
176476 OFF: Office Assistant Not Answering Visual Basic Questions
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 8.00 ppt8 vba vbe powerpt powerpnt macppt mac_ppt ppt98 98
Keywords: kbcode kbdtacode kbhowto kbmacro kbprogramming KB162612