Hello,
I'm trying to create some code to hyperlink cells, but I can't quite get the coding right to make the cell go where I want. I'm close though....
Worksheets("TOC").Hyperlinks.Add anchor:=Worksheets("TOC").Cells(j, i), Address:="", SubAddress:="'" & Worksheets("TOC").Cells(i, 2).Value & "!" & Cells(6, Cells(j, i + 1).Value) '"
I want the end portion to return Worksheet!C6, but it returns Worksheet!3. It's picking up the right column number (3), but I want the R1C1 of (6,3) to turn into a hyperlink of Worksheet!C6.
I somehow need to rework the end of the line to make the R1C1 reference turn into an actual address. It'll always link to the 6th row, but the column changes and the column number is always going to be in Cells(j, i+1).
Any help would be much appreciated.
Thanks!
Bookmarks