Returns an enumerator to support iterating through the collection.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

Usage
Dim returnValue As IEnumerator
Dim sheets1 As Sheets
returnValue = sheets1.GetEnumerator()

Syntax
Function GetEnumerator() As IEnumerator
IEnumerator GetEnumerator();
public: IEnumerator^ GetEnumerator();
public IEnumerator GetEnumerator();
function GetEnumerator() : IEnumerator;

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms

See Also