Voici le texte de la macro :
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Dim S$, Chemin$
On Error GoTo GESTERR
If Target.Count = 1 Then
If Target.Column = 7 And Left(Target, 3) = "Fou" Then
Chemin = "C:\monfichier\"
S = Target
If Dir(Chemin & S) <> "" Then
ActiveWorkbook.FollowHyperlink Chemin & S
Else
GoTo GESTERR
End If
End If
End If
Exit Sub
GESTERR:
MsgBox "Fichier introuvable !" & Chr(13) & "(Mal orthographié ?)"
End Sub
J'ai utilisé e chemin qui était sur la macro enregistrée. Si ce n'était pas le bon chemin c'est de ta faute : Tu as juste à change le texte indiqué à la ligne 6
Chemin = "Indiquer ici le bon chemin en respectant la syntaxe de la macro."
Et la macro se déroulera comme prévu...
A+