Document.ConvertVietDoc Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Reconverts a Vietnamese document to Unicode using a code page other than the default.

expression .ConvertVietDoc(CodePageOrigin)

expression Required. A variable that represents a Document object.

Parameters

Name

Required/Optional

Data Type

Description

CodePageOrigin

Required

Long

The original code page used to encode the document.

Use the ConvertVietDoc method if you want a document to be viewable on another computer or platform.

This example converts the active document from the Vietnamese ABC code page to Unicode. This example assumes that the active document is encoded using the Vietnamese ABC code page.

Sub ConvertToVietCodePage() 
 ActiveDocument.ConvertVietDoc CodePageOrigin:=5 
End Sub
Show: