PublishObject.Title property (Excel)

Returns or sets the title of the webpage when the document is saved as a webpage. Read/write String.

Syntax

expression.Title

expression A variable that represents a PublishObject object.

Remarks

The title is usually displayed in the window title bar when the document is viewed in the web browser.

Example

This example sets the webpage title to Sales Forecast when the first item in the first workbook is saved as a webpage.

Workbooks(1).PublishObjects(1).Title = "Sales Forecast"

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.