Compartir a través de


WorkbookBase.Excel4IntlMacroSheets (Propiedad)

Obtiene una colección Microsoft.Office.Interop.Excel.Sheets que representa las hojas internacionales de macros de Microsoft Office Excel 4.0 del libro.

Espacio de nombres:  Microsoft.Office.Tools.Excel
Ensamblado:  Microsoft.Office.Tools.Excel.v4.0.Utilities (en Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Sintaxis

'Declaración
Public ReadOnly Property Excel4IntlMacroSheets As Sheets
public Sheets Excel4IntlMacroSheets { get; }

Valor de propiedad

Tipo: Microsoft.Office.Interop.Excel.Sheets
Colección Microsoft.Office.Interop.Excel.Sheets que representa las hojas internacionales de macros de Microsoft Office Excel 4.0 del libro.

Comentarios

El ejemplo de código siguiente recorre en iteración los objetos Microsoft.Office.Interop.Excel.Worksheet devueltos por la propiedad Excel4IntlMacroSheets y escribe el nombre de código de cada hoja de cálculo en el resultado de depuración.

Se trata de un ejemplo para una personalización en el nivel del documento.

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);
    }
}

Seguridad de .NET Framework

Vea también

Referencia

WorkbookBase Clase

Microsoft.Office.Tools.Excel (Espacio de nombres)