This topic has not yet been rated - Rate this topic

PublishObject Object (PowerPoint)

Published: July 16, 2012

Represents a complete or partial loaded presentation that is available for publishing to HTML. The PublishObject object is a member of the PublishObjects collection.

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.

Use PublishObjects(index), where index is always "1", to return the single object for a loaded presentation. There can be only one PublishObject object for each loaded presentation. This example publishes slides three through five of presentation two to HTML. It names the published presentation Mallard.htm.

With Presentations(2).PublishObjects(1)

    .FileName = "C:\Test\Mallard.htm"

    .SourceType = ppPublishSlideRange

    .RangeStart = 3

    .RangeEnd = 5


End With

Community Additions

© 2014 Microsoft. All rights reserved.