SourceType Property

Microsoft PowerPoint Visual Basic

Returns or sets the source type of the presentation to be published to HTML. Read/write PpPublishSourceType.

PpPublishSourceType can be one of these PpPublishSourceType constants.
ppPublishAll
ppPublishNamedSlideShow Use this value to publish a custom slide show, specifying the name of the custom slide show with the SlideShowName property.
ppPublishSlideRange

expression.SourceType

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example publishes the specified slide range (slides three through five) of the active presentation to HTML. It names the published presentation Mallard.htm.

With ActivePresentation.PublishObjects(1)
    .FileName = "C:\Test\Mallard.htm"
    .SourceType = ppPublishSlideRange
    .RangeStart = 3
    .RangeEnd = 5
    .Publish
End With