Slide.PublishSlides method (PowerPoint)
Publishes the specified slide to the specified location.
Syntax
expression. PublishSlides
( _SlideLibraryUrl_
, _Overwrite_
, _UseSlideOrder_
)
expression An expression that returns a Slide object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
SlideLibraryUrl | Required | String | The URL to which to publish the slide library. |
Overwrite | Optional | Boolean | Whether to overwrite existing content at SlideLibraryURL. The default is False. |
UseSlideOrder | Optional | Boolean | Whether 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 ("https://myURL ")
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.