J
Jey
Hi !
I got a little problem : I have a table on the first sheet, with numbers
like this :
A
132
145
167
187
198
264
....
These numbers are references to names of other cells on a second sheet. for
example, I have a cell named "id_132", another one "id_145", etc...
What I want is on the first sheet, a column B with a link to the cells in
sheet 2
I tried that :
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
areacount = Selection.Rows.Count
For line = 0 To areacount
Range("B" & line).Select
linktomap = "id_" & Range("A" & line).Value
ActiveCell.FormulaR1C1 = "=HYPERLINK(""linktomap"",""See"")"
Next
The problem is that "linktomap is not interpreted as a variable in the
formula, so it doesn't work. Is there a way to bypass this issue, or to do
it another way ?
Thanks !
Jey
I got a little problem : I have a table on the first sheet, with numbers
like this :
A
132
145
167
187
198
264
....
These numbers are references to names of other cells on a second sheet. for
example, I have a cell named "id_132", another one "id_145", etc...
What I want is on the first sheet, a column B with a link to the cells in
sheet 2
I tried that :
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
areacount = Selection.Rows.Count
For line = 0 To areacount
Range("B" & line).Select
linktomap = "id_" & Range("A" & line).Value
ActiveCell.FormulaR1C1 = "=HYPERLINK(""linktomap"",""See"")"
Next
The problem is that "linktomap is not interpreted as a variable in the
formula, so it doesn't work. Is there a way to bypass this issue, or to do
it another way ?
Thanks !
Jey