jasonb75
Well-known Member
- Joined
- Dec 30, 2008
- Messages
- 15,507
- Office Version
- 365
- Platform
- Windows
Hi all, Does anyone have an idea how I can make this work?
I want to link the cell to itself with the hyperlink, (yes there is a reason for it) this line works with Range but not Cells, unfortunately both variables return integers so I need to somehow convert the numeric value of the varaible "c" to the corresponding column.
I'm sure it should be an easy and obvious task but I've been looking at code all day and can't see it
Thanks in advance
JB
Code:
ActiveSheet.Hyperlinks.Add Anchor:=Cells(b, c - 1), Address:="", SubAddress:=Cells(b, c - 1), TextToDisplay:=d
I want to link the cell to itself with the hyperlink, (yes there is a reason for it) this line works with Range but not Cells, unfortunately both variables return integers so I need to somehow convert the numeric value of the varaible "c" to the corresponding column.
I'm sure it should be an easy and obvious task but I've been looking at code all day and can't see it
Thanks in advance
JB