Worksheet name

Closed
smd - 8 Apr 2009 à 05:42
mubashir aziz Posts 190 Registration date Sunday 12 April 2009 Status Member Last seen 16 February 2010 - 14 Apr 2009 à 07:08
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 12 April 2009 Status Member Last seen 16 February 2010 166
13 Apr 2009 à 02:45
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
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.
mubashir aziz Posts 190 Registration date Sunday 12 April 2009 Status Member Last seen 16 February 2010 166
14 Apr 2009 à 07:08