List the worksheets in a workbook
? Sheets.Item(2).name
Or you could just write the code to loop the names to the immediate window:
Sub SheetNames()
Dim intSheets As Integer
Dim i As Integer
intSheets = Sheets.Count
For i = 1 To intSheets
Debug.Print Sheets.Item(i).Name
Next
End Sub
Ken
"Kirk P." wrote:
I want to list the worksheet names in a workbook using the Immediate window.
What should I type in this window to do this?
|