Dim fichier As Variant 'mémorise la variable
Private Sub CommandButton1_Click()
With Feuil1.Image1
.Picture = LoadPicture(IIf(Label1 = "", "", fichier))
.PictureSizeMode = fmPictureSizeModeStretch 'cadrage
.Parent.[A12] = Label1
End With
End Sub
Private Sub Image1_Click()
Image1.Picture = LoadPicture("") 'RAZ
Label1 = "" 'RAZ
ChDir ThisWorkbook.Path
fichier = Application.GetOpenFilename 'choix
On Error Resume Next 'si une image n'est pas choisie
Image1.Picture = LoadPicture(fichier)
Image1.PictureSizeMode = fmPictureSizeModeStretch 'cadrage
If Err = 0 Then Label1 = Mid(fichier, InStrRev(fichier, "\")...