I have edited this question because I made a small mistake and decided not to dumb down the cell references I am using to simple ones.
I have chosen to update a hyperlink in a specific cell by running a macro.
Range("AB118").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
Range("Z118") & Range("AD105")
So basically:
Column AB contains the final hyperlink Eg. Home!AB118
Column Z contains the name of the sheet Eg. Home!
Cell AD105 contains the cell which you will land Eg. AB118
I have written the macro to update the hyperlink one cell/row at a time.
'Update "Sheet 1" Link
Range("AB118").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
Range("Z118") & Range("AD105")
'Update "Sheet 2" Link
Range("AB119").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
Range("Z119") & Range("AD105")
'Update "Sheet 3" Link
Range("AB120").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
Range("Z120") & Range("AD105")
Is there a way to use "For Each" or similar, to shorten this macro which goes through each line combining column Z & cell AD105 into a hyperlink which appears in Column AB.
Hopefully this will make sense, I'm quite experienced with excel and VBA, but new to the forum.
The table of this information starts at row 118 and ends at row 171, So I am not sure if I need to tell it to start on a specific row and end on a specific row.