FileName Property

Microsoft PowerPoint Visual Basic

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 String.

Remarks

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

Example

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
    .Publish
End With