Hi,
Need to create a bunch of links in excel.
Got this far but don't know the syntax for using a variable in a cell address...
With Worksheets(1)
Dim LCounter As Integer
For LCounter = 3 To 33
ActiveSheet.Hyperlinks.Add Anchor:=.Range("az,&LCounter"), _
Address:="", SubAddress:=("#STATUS2!a,&LCounter"), _
TextToDisplay:="link 3"
Next LCounter
End With
(Just linking one cell in one sheet to another sheet in the same doc.)
(Macro works fine until I attempt to use the for next loop.)
Need to create a bunch of links in excel.
Got this far but don't know the syntax for using a variable in a cell address...
With Worksheets(1)
Dim LCounter As Integer
For LCounter = 3 To 33
ActiveSheet.Hyperlinks.Add Anchor:=.Range("az,&LCounter"), _
Address:="", SubAddress:=("#STATUS2!a,&LCounter"), _
TextToDisplay:="link 3"
Next LCounter
End With
(Just linking one cell in one sheet to another sheet in the same doc.)
(Macro works fine until I attempt to use the for next loop.)