Edit the line highlighted red:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range
For Each c In Target
If Not Intersect(c, Range("A8:A9999")) Is Nothing Then
If c.Value = "" Then
c.Offset(0, 1).ClearContents
Else
ActiveSheet.Hyperlinks.Add _
Anchor:=c.Offset(0, 1), _
Address:="\\fserver\folder\" & Range("B7").Value & c.Value & ".pdf", _
TextToDisplay:="YES"
End If
End If
Next c
End Sub
You can make this anything you want. Your new question isn't specific enough to provide an actual specific answer for you, but it might look something like:
Address:="\\fserver\folder\" & ActiveSheet.Name & c.Value & ".pdf", _
TextToDisplay:="YES"
Bookmarks