Through automation:
(1) set the link to the corresponding Excel library - I use Excel 2003 so that it is "Microsoft Excel 11.0 Object Library"
(2) create an Excel Application object
(3) open the corresponding Workbook
(4) iterations over the Worksheets collection
(5) get the Name property for each Worksheet
Dim xlApp As Excel.Application Dim wb As Workbook Dim ws As Worksheet Set xlApp = New Excel.Application Set wb = xlApp.Workbooks.Open("C:\foo.xls") For Each ws In wb.Worksheets MsgBox ws.Name Next ws wb.Close xlApp.Quit
source share