Worksheet name

Closed
smd - Apr 8, 2009 at 05:42 AM
mubashir aziz Posts 190 Registration date Sunday April 12, 2009 Status Member Last seen February 16, 2010 - Apr 14, 2009 at 07:08 AM
Hello,

in sheet 1, i need to get the name of other worksheets using formulas.

thanks,

2 responses

mubashir aziz Posts 190 Registration date Sunday April 12, 2009 Status Member Last seen February 16, 2010 165
Apr 13, 2009 at 02:45 AM
Copy this formula in module and run in Sheet1 all sheet's name will be copied from A1 to onward .....


Sub LISTSHEETS()

Dim ws As Worksheet
Dim x As Integer

x = 1

Sheets("Sheet1").Range("A:A").Clear

For Each ws In Worksheets

Sheets("Sheet1").Cells(x, 1) = ws.Name
x = x + 1

Next ws

End Sub
0
hi thanks alot for the macro which i already have...but i am looking for a function to get this data and not a macro.
0
mubashir aziz Posts 190 Registration date Sunday April 12, 2009 Status Member Last seen February 16, 2010 165
Apr 14, 2009 at 07:08 AM
0