Freigeben über


WorkbookBase.Excel4IntlMacroSheets-Eigenschaft

Ruft eine Microsoft.Office.Interop.Excel.Sheets-Auflistung ab, die alle internationalen Makrovorlagen von Microsoft Office Excel 4.0 in der Arbeitsmappe darstellt.

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 ReadOnly Property Excel4IntlMacroSheets As Sheets
    Get
public Sheets Excel4IntlMacroSheets { get; }

Eigenschaftswert

Typ: Microsoft.Office.Interop.Excel.Sheets
Eine Microsoft.Office.Interop.Excel.Sheets-Auflistung, die alle internationalen Makrovorlagen von Microsoft Office Excel 4.0 in der Arbeitsmappe darstellt.

Hinweise

Im folgenden Codebeispiel wird jedes von der Excel4IntlMacroSheets-Eigenschaft zurückgegebene Microsoft.Office.Interop.Excel.Worksheet durchlaufen, und der Codename aller Arbeitsblätter wird an die Debugausgabe geschrieben.

Dieses Beispiel bezieht sich auf eine Anpassung auf Dokumentebene.

Private Sub DisplayExcel4IntlMacroSheets()
    Dim sheetsCollection As Excel.Sheets = Me.Excel4IntlMacroSheets
    Dim i As Integer
    For i = 1 To sheetsCollection.Count
        Dim sheet As Excel.Worksheet = _
            CType(sheetsCollection(i), Excel.Worksheet)
        System.Diagnostics.Debug.WriteLine(sheet.CodeName)
    Next i
End Sub
private void DisplayExcel4IntlMacroSheets()
{
    Excel.Sheets sheetsCollection = this.Excel4IntlMacroSheets;
    for (int i = 1; i < sheetsCollection.Count; i++)
    {
        Excel.Worksheet sheet = (Excel.Worksheet)sheetsCollection[i];
        System.Diagnostics.Debug.WriteLine(sheet.CodeName);
    }
}

.NET Framework-Sicherheit

Siehe auch

Referenz

WorkbookBase Klasse

Microsoft.Office.Tools.Excel-Namespace