you can play around with these: One puts the Excel hyperlink address in to clipboard after some customization, the other just 'follows' the link after some customization
The HL in the cell is just www.Google.com but I added "/webhp?complete=0&hl=en" to it before putting in clipboard or launching
I just used the OnKey technique to assign macro launching keys
Option Explicit
'uses code 'borrowed from' www.cpearson.com/Excel/Clipboard.aspx
Sub CaptureOn()
Application.OnKey "+^%c", "URL2Clipboard"
Application.OnKey "+^%l", "URL2Launch"
End Sub
Sub CaptureOff()
Application.OnKey "+^%c"
Application.OnKey "+^%l"
End Sub
Sub URL2Clipboard()
Dim rCell As Range
Dim sURL As String
If Not TypeOf Selection Is Range Then Exit Sub
Set rCell = Selection.Cells(1, 1)
With rCell
If .Hyperlinks.Count = 0 Then Exit Sub
'https://www.google.com
sURL = .Hyperlinks(1).Address
'add some stuff
sURL = sURL & "/webhp?complete=0&hl=en"
If Not PutInClipboard(sURL) Then Exit Sub
'just to see if it really put it on the clipboard
rCell.Offset(2, 2).Select
ActiveSheet.Paste
End With
End Sub
Sub URL2Launch()
Dim rCell As Range
Dim sURL As String
If Not TypeOf Selection Is Range Then Exit Sub
Set rCell = Selection.Cells(1, 1)
With rCell
If .Hyperlinks.Count = 0 Then Exit Sub
'https://www.google.com
sURL = .Hyperlinks(1).Address
'add some stuff
sURL = sURL & "/webhp?complete=0&hl=en"
'launch
ThisWorkbook.FollowHyperlink Address:=sURL
End With
End Sub