2 pièce(s) jointe(s)
insertion image dans un commandbutton
bonjour j'ai mis en place dans useform 1 un commandbutton pour qui affiche une image
mon code ci dessous
Code:
1 2 3 4 5 6 7 8 9
| Private Sub CommandButton3_Click()
Dim a
a = Application.GetOpenFilename("Fichier jpg;gif;bmp;tif,*.jpg ;*.tif;*.gif;*.jpg")
If a <> False Then Imag.Picture = LoadPicture(a): photo = a
End Sub
Private Sub CommandButton4_Click()
Imag.Picture = LoadPicture(""): photo = ""
End Sub |
Pièce jointe 483516
Pièce jointe 483514
mais cela n'affiche pas l'image dans mon bouton et le chemin ne s’enregistre pas dans ma feuill "00-recap en colonne aw
ci joints mon fichier
merci de votre aide