Share via


PublishObject.FileName Property

PowerPoint Developer Reference

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.

Syntax

expression.FileName

expression   A variable that represents a PublishObject object.

Return Value
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.

Visual Basic for Applications
  With ActivePresentation.PublishObjects(1)
    .FileName = "C:\Test\Mallard.htm"
    .SourceType = ppPublishSlideRange
    .RangeStart = 3
    .RangeEnd = 5
    .Publish
End With

See Also