I have written a macro to hyperlink to sheet summary on S2 on each sheet from sheet3 onwards, button hyperlink on the active sheet, but in a different cell
Kindly amend my code to only hyperlink sheet "summary" on cell S2 from sheet 3 onwards
Kindly amend my code to only hyperlink sheet "summary" on cell S2 from sheet 3 onwards
Code:
Sub Hyperlink_Summary()
For I = 3 To Worksheets.Count
With Worksheets(I)
.Range("s2").Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
"Summary!A1", TextToDisplay:="Summary"
End With
Next I
End Sub