Try this. Right-click on the sheet tab, select View Code, and copy this code:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim Rng As Range
Dim strHyp As String
Set Rng = Range("A1:A100")
strHyp = "http://scr.blahblahblah.com/CHRDetails.pl?CHRID="
If Not Intersect(Target, Rng) Is Nothing Then
If Not IsEmpty(Target) Then
Application.EnableEvents = False
Target = "US_000" & Target
ActiveSheet.Hyperlinks.Add Target, strHyp & Target
Application.EnableEvents = True
End If
End If
End Sub
You may want to change the above noted range (this is set so that it will only create a hyperlink if it is in range A1:A100).
You will also, obviously, need to change the web address if it is not accurate.
HTH
Jason
Bookmarks