I need to summarize the sheet with sheet name as " Summary sheet" with hyperlink.
In the below code , it is summarize but file name is not proper and i need to do manually the hyperlink.
Private Sub ListSheets()
'list of sheet names starting at A1
Dim Rng As Range
Dim i As Integer
Worksheets.Add
Set Rng = Range("A1")
For Each Sheet In ActiveWorkbook.Sheets
Rng.Offset(i, 0).Value = Sheet.Name
i = i + 1
Next Sheet
End Sub
// linking the sheets
=HYPERLINK("#'"&A2&"'!A1",A2)
Thank you in advance
In the below code , it is summarize but file name is not proper and i need to do manually the hyperlink.
Private Sub ListSheets()
'list of sheet names starting at A1
Dim Rng As Range
Dim i As Integer
Worksheets.Add
Set Rng = Range("A1")
For Each Sheet In ActiveWorkbook.Sheets
Rng.Offset(i, 0).Value = Sheet.Name
i = i + 1
Next Sheet
End Sub
// linking the sheets
=HYPERLINK("#'"&A2&"'!A1",A2)
Thank you in advance