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

Slide.PublishSlides Method (PowerPoint)

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

Publishes the specified slide to the specified location.

Syntax

expression. PublishSlides( SlideLibraryUrl, Overwrite, UseSlideOrder )

expression An expression that returns a Slide object.

Parameters

NameRequired/OptionalData TypeDescription
SlideLibraryUrlRequiredStringThe URL to which to publish the slide library.
OverwriteOptionalBooleanWhether to overwrite existing content at SlideLibraryURL. The default is False.
UseSlideOrderOptionalBooleanWhether to use the existing slide order. The default is False.

Return Value

Nothing

Example

The following example shows how to publish slide one in the active presentation to a specific URL. Before running this code, substitute a valid URL for myURL.

Public Sub PublishSlides_Example()



    Dim pptSlide As Slide



    Set pptSlide = ActivePresentation.Slides(1)

    pptSlide.PublishSlides ("http://myURL ")



End Sub

See also

Concepts

Slide Object

© 2018 Microsoft