Samadhan Gaikwad
Member
I have code that creates hyperlink to only one cell. I want it to iterate through all filled cells along column F or C or E.
Code:
Sub insertVeryLongHyperlink()
Dim curCell As Range
Dim longHyperlink, TextToDisplay1 As String
Set curCell = Range("G1") ' or use any cell-reference
longHyperlink = [E1]
TextToDisplay1 = [C1]
curCell.Hyperlinks.Add Anchor:=curCell, _
Address:=longHyperlink, _
SubAddress:="", _
ScreenTip:=" - Click here to follow the hyperlink", _
TextToDisplay:=TextToDisplay1
End Sub