I'm stuggaling with getting to grips with adding hyperlinks to cells through vba. I think I have the pre-requists for adding of hyperlinks. Although I'm unable to get it to work.
Having looked through forums and the such, I was able to create this code, but no matter how hard I try I am unable to get it to work. The code produces Object required on the .Hyperlink line
With ActiveWorksheet
.Hyperlink.Add Anchor:=ActiveWorksheet.Cells(i, 2)
Address = Cells(SerialNumberLocation, 2)
TextToDisplay = AlternateEngineNumber
End With
Do anyone have any tips on imporving the code?
By changing ActiveWorkSheets to ActiveSheets and removing the .Hyperlink to Hyperlink I still recive the same error, with the code nwo looking like
With ActiveSheet
Hyperlink.Add Anchor:=ActiveSheet.Cells(i, 2)_
Address = Cells(SerialNumberLocation, 2)_
TextToDisplay = AlternateEngineNumber
End With
Thanks

Hyperlinks.Addand you need line continuation characters for a statement that is spread over more than one line._)??