Bonjour Tompouce, Ergotamine , le forum,
C'est bon j'ai trouvé.
Dans ce cas, tu pourrais partager ta solution, cela serait profitable aux membres du forum qui consulte ce sujet.....
ActiveCell.Hyperlinks.Add Anchor:=Range(ActiveCell.Address), Address:=FICHIER, TextToDisplay:=nomLien
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim FICHIER As String, nomLien As String
On Error GoTo 1
nomLien = InputBox("Nom du lien ?", "Lien hypertext")
With Application.FileDialog(msoFileDialogFilePicker)
.InitialFileName = "C:\Users\anton\Documents"
.Show
FICHIER = .SelectedItems(1)
ActiveCell = .SelectedItems(1)
nomLien = IIf(nomLien <> "", nomLien, FICHIER)
ActiveCell.Hyperlinks.Add Anchor:=Range(ActiveCell.Address), Address:=FICHIER, TextToDisplay:=nomLien
End With
1: err.Clear: Exit Sub
End Sub
Merci à Ergotamine pour le code,
Cordialement,