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.
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.
With ActivePresentation.PublishObjects(1)
.FileName = "C:\Test\Mallard.htm"
.SourceType = ppPublishSlideRange
.RangeStart = 3
.RangeEnd = 5
.Publish
End With
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for