Workbook.WebOptions property (Excel)
Returns the WebOptions collection, which contains workbook-level attributes used by Microsoft Excel when you save a document as a webpage or open a webpage. Read-only.
expression A variable that represents a Workbook object.
This example specifies that cascading style sheets and Western document encoding be used when items in the first workbook are saved to a webpage.
Set objWO = Workbooks(1).WebOptions objWO.RelyOnCSS = True objWO.Encoding = msoEncodingWestern
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.