Bonsoir,

J'ai un petit code qui permet en double-cliquant sur une cellule de ramener la valeur de correspondance dans une table. (recherchev).
Mainteant je souhaite que mon fichier Toto.xls cherche dans Table.xls
Est il possible d'indiquer le chemin du fichier excel conteant la table

Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
Nomcell = ActiveCell.Address
Set Macell = Range(Nomcell)
'MsgBox Macell
On Error Resume Next
Set Plage = Sheets("Table").Range("A:B") '
nom du fichier pour la recherche ?rech = Application.WorksheetFunction.VLookup(Macell, Plage, 2, False)
If rech <> "" Then
MsgBox rech
Else
MsgBox "Rien trouvé"
End If
End Sub