Normally, one would just use the sheet's selection or change event for this. It is posiblie to have both a selection and a change event to trigger code. However, it seems that you want an "X" and then a selection.
I used the name of the row just above the "X" as part of the filename. You would need to change the path for your files.
You can be more specific if needed. Use a Select Case for that scenario when your filename does not match the naming convention that I guessed.
To use this, right click your sheet's tab, View Code, and paste. Enter and X in one of B19:F19. Then click some other cell and then click the X cell.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Intersect(Target, Range("B19:F19")) Is Nothing Then Exit Sub
If Target.Value = "X" Then OpenDoc "c:\myfiles\msword\" & Target.Offset(-1, 0) & ".doc"
End Sub
Sub OpenDoc(sDocName As String)
If Dir(sDocName) = "" Then Exit Sub
Shell "cmd /c " & sDocName, vbNormalFocus
End Sub
Bookmarks