Thread
:
Extracting worksheet names....
View Single Post
#
2
Mangesh Yadav via OfficeKB.com
Posts: n/a
run the following code:
Sub test()
Set rng = Worksheets("Sheet1").Range("A1")
i = 1
For Each sht In Worksheets
rng(i, 1) = sht.Name
i = i + 1
Next
End Sub
place it in any module to run it.
- Mangesh
--
Message posted via
http://www.officekb.com
Reply With Quote