This documentation is archived and is not being maintained.

WebOptions Object

Office 2007
Contains presentation-level attributes used by Microsoft Office PowerPoint when you save or publish a complete or partial presentation as a Web page or open a Web page.


You can return or set attributes either at the application (global) level or at the presentation level. (Note that attribute values can be different from one presentation to another, depending on the attribute value at the time the presentation was saved.) Presentation-level attribute settings override application-level attribute settings. Application-level attributes are contained in the DefaultWebOptions object.


Use the WebOptions property to return the WebOptions object. The following example checks to see whether Portable Network Graphics (PNG) is allowed as an image format for presentation one. If PNG is allowed, it sets the text color for the outline pane to white and the background color for the outline and slide panes to black.

Visual Basic for Applications
Set objAppWebOptions = Presentations(1).WebOptions
With objAppWebOptions
    If .AllowPNG = True Then
        .FrameColors = ppFrameColorsWhiteTextOnBlack
    End If
End With