Freigeben über


WorkbookBase.ReloadAs Method

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

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Public Sub ReloadAs ( _
    encoding As MsoEncoding _
)
public void ReloadAs(
    MsoEncoding encoding
)

Parameters

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 Sub WorkbookReloadAs()
    Me.ReloadAs(Office.MsoEncoding.msoEncodingWestern)
End Sub
private void WorkbookReloadAs()
{
    this.ReloadAs(Office.MsoEncoding.msoEncodingWestern);
}

.NET Framework Security

See Also

Reference

WorkbookBase Class

Microsoft.Office.Tools.Excel Namespace