Hi,
I have the following code,created using the Excel macro recorder.
Is it possible to change the parts that refer to "HELP" so that it refers to cell H25, so that when I change the text within cell H25 and run the macro again it will create a new Hyperlink,called whatever text is displayed in cell H25.
Thanks for the ideas.
Ade
I have the following code,created using the Excel macro recorder.
Is it possible to change the parts that refer to "HELP" so that it refers to cell H25, so that when I change the text within cell H25 and run the macro again it will create a new Hyperlink,called whatever text is displayed in cell H25.
Thanks for the ideas.
Ade
Code:
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
"HELP!A1", TextToDisplay:="HELP"
Code:
Sub HYPERLINK()
Range("F45").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
"HELP!A1", TextToDisplay:="HELP"
Range("F45").Select
Selection.Font.Bold = True
With Selection.Font
.Name = "Arial"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleSingle
.ColorIndex = 5
End With
End Sub