Petchy, le forum
Essaye ce code en ajoutant dans ton UserForm :
Un control image1, et a l'interieur de celui-ci un Label13 ,
A ajouter dans ton listBox qui lance ton descriptif et par la même occasion de ton image, prends soin de modifier le code pour ton ListBox a ce niveau :
With Range("A8:A" & Range("A65536").End(xlUp).Row)
Set Cell = .Find(ListBox1, LookIn:=xlValues)
(Il ne s'appel peu être pas pas ListBox1) et le chemin d'acces ou sont stockés tes images a ce niveau:
Image1.Picture = LoadPicture(ThisWorkbook.Path & "\" & Cell & ".jpg")
Voici ce code :
Private Sub ListBox1_Click()
Dim Cell As Object
On Error GoTo gestion
With Range("A8:A" & Range("A65536").End(xlUp).Row)
Set Cell = .Find(ListBox1, LookIn:=xlValues)
Image1.Picture = LoadPicture(ThisWorkbook.Path & "\" & Cell & ".jpg")
Label16.Visible = False
End With
Exit Sub
gestion: 'si pas d'image disponible pour chargement
If Err.Number = 53 Then
Label16.Caption = "Pas de photo disponible pour cette référence. "
Image1.Picture = LoadPicture()
End If
end sub
Voila, ce code m'a été donné par Michel il me semble (Si je me trompe j'espère que cette personne se reconnaitra), que je remercie grandement, et s'il peu te servire et bien j'en serait ravie, Salut G'Claire