Share via


SlideShowName Property

SlideShowName property as it applies to the ActionSetting, PrintOptions, PublishObject, and SlideShowSettings objects.

Returns or sets the name of the custom slide show to run in response to a mouse action on the shape during a slide show (ActionSetting object), returns or sets the name of the custom slide show to print (PrintOptions object), or returns or sets the name of the custom slide show published as a web presentation (PublishObject object). Read/write String.

expression.SlideShowName

*expression   * Required. An expression that returns one of the above objects.

Remarks

The RangeType property must be set to ppPrintNamedSlideShow to print a custom slide show.

SlideShowName property as it applies to the SlideShowView object.

Returns the name of the custom slide show that's currently running in the specified slide show view. Read-only String.

expression.SlideShowName

*expression   * Required. An expression that returns one of the above objects.

Example

As it applies to the ActionSetting, PrintOptions, PublishObject, and SlideShowSettings objects.

This example prints an existing custom slide show named "tech talk."

With ActivePresentation.PrintOptions
    .RangeType = ppPrintNamedSlideShow
    .SlideShowName = "tech talk"
End With
ActivePresentation.PrintOut

The following example saves the current presentation as an HTML version 4.0 file with the name "mallard.htm." It then displays a message indicating that the current named presentation is being saved in both PowerPoint and HTML formats.

With Pres.PublishObjects(1)
    PresName = .SlideShowName
    .SourceType = ppPublishAll
    .FileName = "C:\HTMLPres\mallard.htm"
    .HTMLVersion = ppHTMLVersion4
    MsgBox ("Saving presentation " & "'" _
        & PresName & "'" & " in PowerPoint" _
        & Chr(10) & Chr(13) _
        & " format and HTML version 4.0 format")
    .Publish
End With

As it applies to the SlideShowView object.

If the slide show running in slide show window one is a custom slide show, this example displays its name.

With SlideShowWindows(1).View
    If .IsNamedShow Then
        MsgBox "Now showing in slide show window 1: " _
            & .SlideShowName
    End If
End With