PublishObject.FileName Property (PowerPoint)

Returns or sets the path and file name of the Web presentation created when all or part of the active presentation is published. Read/write.


expression. FileName

expression A variable that represents a PublishObject object.

Return Value



The FileName property generates an error if a folder in the specified path does not exist.


This example publishes slides three through five of the active presentation to HTML. It names the published presentation Mallard.htm and saves it in the Test folder.

With ActivePresentation.PublishObjects(1)

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

    .SourceType = ppPublishSlideRange

    .RangeStart = 3

    .RangeEnd = 5


End With

See also

PublishObject Object