Bonjour et merci d'avance pour votre précieuse aide,
J'ai le code ci-dessous qui me servirait à extraire dans un fichier fermé une information que je mettrais en Msgbox.
Mais çà ne fonctionne pas
il met : Erreur d'execution '13':
Incompatibilité de type
Quelqu'un pourrait me dépanner dans la bonne syntaxe ?
Merci bcp
Chree
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("i2:i25000")) Is Nothing Then
result = Application.VLookup(Target.Offset(0, 0).Value, "'S:\Book AM\SECTEUR_POLISSAGE\3 GESTION PRODUCTION\Suivi_Production\[Consignes.xlsx]Consigne'!B:O", 5, False)
MsgBox result
End If
End Sub