Flexcomps’s Weblog

Macro to copy sheets Names in Excel

Posted by: Yogesh Puri on: November 7, 2008

A very nice utility

Sub CreateListOfSheetNames()
Set wkbkToCount = ActiveWorkbook
iRow = 1
With Sheets.Add
For Each ws In wkbkToCount.Worksheets
.Rows(iRow).Cells(1).Value = ws.Name
ActiveSheet.Hyperlinks.Add Anchor:=.Rows(iRow).Cells(1), Address:="", SubAddress:= _
ws.Name & "!A1", TextToDisplay:=ws.Name
iRow = iRow + 1
Next
End With
End Sub

1 Response to "Macro to copy sheets Names in Excel"

[...] Read the original here: Macro to copy sheets Names in Excel [...]

Leave a Reply

 

November 2008
M T W T F S S
« Oct   Dec »
 12
3456789
10111213141516
17181920212223
24252627282930

Blog Stats

  • 136,186 hits