Partager via


DefaultWebOptions.AlwaysSaveInDefaultEncoding Property (PowerPoint)

Determines whether the default encoding is used when you save a Web page or plain text document, independent of the file's original encoding when opened. Read/write.

Syntax

expression .AlwaysSaveInDefaultEncoding

expression A variable that represents an DefaultWebOptions object.

Return Value

MsoTriState

Remarks

The Encoding property can be used to set the default encoding.

The value of the AlwaysSaveInDefaultEncoding Property property can be one of these MsoTriState constants.

Constant

Description

msoFalse

The default. The original encoding of the file is used when you save a Web page or plain text document, independent of the file's original encoding when opened.

msoTrue

The default encoding is used when you save a Web page or plain text document, independent of the file's original encoding when opened.

Example

This example sets the encoding to the default encoding. The encoding is used when you save the document as a Web page.

Application.DefaultWebOptions.AlwaysSaveInDefaultEncoding = msoTrue

See Also

Concepts

DefaultWebOptions Object

DefaultWebOptions Object Members