Table of contents
TOC
Collapse the table of content
Expand the table of content

PublishObject.SourceType Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Syntax

expression. SourceType

expression A variable that represents a PublishObject object.

Return Value

PpPublishSourceType

Remarks

The value of the SourceType property can be one of these PpPublishSourceType constants.

|| |:-----| |ppPublishAll| |ppPublishNamedSlideShow| |ppPublishSlideRange| Use the ppPublishNamedSlideShow value to publish a custom slide show, specifying the name of the custom slide show by using the SlideShowName property.

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

See also

Concepts

PublishObject Object

© 2018 Microsoft