Name of worksheets in one worksheet
Sub CreateListOfSheetsOnFirstSheet()
Dim ws As Worksheet
For i = 1 To Worksheets.Count
With Worksheets(1)
Set ws = Worksheets(i)
.Cells(i, 1).Value = ws.Name
.Cells(i, 2).Value = ws.CodeName
End With
Next i
End Sub
Gord Dibben MS Excel MVP
On Thu, 19 Oct 2006 19:23:27 +0900, "Rasoul Khoshravan"
wrote:
I know how to obtain name of worksheets in the same worksheet.
Following function will do this.
MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
I want to obtain name of all worksheets in one sheet. How can I do it.
Sheet names are not: [sheet]+numbers.
Finally I want to perform: counta("sheetname",A:A). If there is any easy way
to do this command, let me know.
|