alexsheehan
Member
Hi folks
I currently have a column (column D) with a list of names and the names are clickable with the =HYPERLINK() formula;-
The cells all function and take me to the relevant section of the database when clicked - What I wish to know is, if it is possible to have the adjacent cell to where the HYPERLINK is located (in this case the adjacent cell is C7), populate with a value when the hyperlink is clicked and then for the hyperlink to be activated?
I have tried various ways, but I seem to keep falling short.
So far, the code I have is thus;-
Does this make sense?
If someone could help me or let me know if this is not possible I would be eternally grateful! It's probably something really obvious that overlooking knowing me!
Best regards
Alex
I currently have a column (column D) with a list of names and the names are clickable with the =HYPERLINK() formula;-
Code:
=IF($B7="","",IFERROR(HYPERLINK(A7,VLOOKUP(B7,Database!$A:$AH,12,0)&" "&VLOOKUP($B7,Database!$A:$AH,11,0)),""))
The cells all function and take me to the relevant section of the database when clicked - What I wish to know is, if it is possible to have the adjacent cell to where the HYPERLINK is located (in this case the adjacent cell is C7), populate with a value when the hyperlink is clicked and then for the hyperlink to be activated?
I have tried various ways, but I seem to keep falling short.
So far, the code I have is thus;-
Code:
If target.Offset(0,-1).Value = "þ" Then
target.Offset(0,-1).Formula = "=if($D:$D="""","""",Hyperlink("""",""o""))"
target.Offset(0,-1).Font.Name = "Wingdings"
target.Offset(0,-1).Font.Underline = False
target.Font.Size = 14
Else
target.Offset(0,-1).Value = "o"
target.Offset(0,-1).Formula = "=if($D:$D="""","""",Hyperlink("""",""þ""))"
target.Font.Name = "Wingdings"
target.Font.Underline = False
target.Font.Size = 14
End If
Does this make sense?
If someone could help me or let me know if this is not possible I would be eternally grateful! It's probably something really obvious that overlooking knowing me!
Best regards
Alex