The following code lists the sheet names in a workbook starting at A6 on the "Summary" sheet.
How do I modify the code to change the listed sheet names to hyperlink to each of the named sheets?
How do I modify the code to change the listed sheet names to hyperlink to each of the named sheets?
Code:
Sub InsertNames()
Worksheets("Summary").Unprotect
Dim N As String
Dim i As Long, r As Long
For i = 1 To Worksheets.Count
N = Worksheets(i).Name
If N <> "Summary" And N <> "Master" And N <> "Names" Then
r = r + 1
ActiveSheet.Cells(r + 5, 1).Value = N
End If
Next i
Worksheets("Summary").Protect
Worksheets("Summary").Activate
Range("B1").Select
Application.ScreenUpdating = True
End Sub