次の方法で共有


WorkbookBase.ReloadAs(MsoEncoding) Method

Definition

Reloads a workbook based on an HTML document, using the specified document encoding.

public:
 void ReloadAs(Microsoft::Office::Core::MsoEncoding encoding);
public void ReloadAs (Microsoft.Office.Core.MsoEncoding encoding);
member this.ReloadAs : Microsoft.Office.Core.MsoEncoding -> unit
Public Sub ReloadAs (encoding As MsoEncoding)

Parameters

encoding
MsoEncoding

One of the Microsoft.Office.Core.MsoEncoding values. The encoding that is to be applied to the workbook.

Examples

The following code example uses the ReloadAs method to reload the workbook using the Western document encoding. This example assumes that the current workbook is based on an HTML document.

This example is for a document-level customization.

private void WorkbookReloadAs()
{
    this.ReloadAs(Office.MsoEncoding.msoEncodingWestern);
}
Private Sub WorkbookReloadAs()
    Me.ReloadAs(Office.MsoEncoding.msoEncodingWestern)
End Sub

Applies to