I'm currently building a work book with a few macros. Part of the macro I'm writing changes the sheet name to the value of the cell and then proceeds to generate the associated hyperlinks to other pages.
Is there a way I can create a hyperlink from the active sheet to the active sheet? I will then copy this cell and move it to the associated sheets.
Code:
Sub Hyperlink Test()
Range("H1").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection,Address(""),SubAddress:=_
ActiveSheet,TextToDisplay:=Range("B1").Value
End Sub
Code:
Sub Hyperlink Test()
Range("H1").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection,Address(""),SubAddress:=_
ActiveSheet,TextToDisplay:=Range("B1").Value
End Sub