Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
True if the default encoding is used when you save a webpage or plain text document, independent of the file's original encoding when opened. Read/write Boolean.
Syntax
expression.AlwaysSaveInDefaultEncoding
expression A variable that represents a DefaultWebOptions object.
Remarks
False if the original encoding of the file is used. The default value is False.
The Encoding property can be used to set the default encoding.
Example
This example sets the encoding to the default encoding. The encoding is used when you save the document as a webpage.
Application.DefaultWebOptions _
.AlwaysSaveInDefaultEncoding = True
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.