Publish Method

Microsoft PowerPoint Visual Basic

Publish Method

       

Creates a Web presentation (HTML format) from any loaded presentation. You can view the published presentation in a Web browser.

expression.Publish

expression   Required. An expression that returns a PublishObject object.

Remarks

You can specify the content and attributes of the published presentation by setting various properties of the PublishObject object. For example, the SourceType property defines the portion of a loaded presentation to be published. The RangeStart property and the RangeEnd property specify the range of slides to publish, and the SpeakerNotes property designates whether or not to publish the speaker's notes.

Example

This example publishes 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