1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Private Sub Image_CreateurApplication_BeforeDragOver(ByVal Cancel As MSForms.ReturnBoolean, ByVal Data As MSForms.DataObject, ByVal X As Single, ByVal Y As Single, ByVal DragState As MSForms.fmDragState, ByVal Effect As MSForms.ReturnEffect, ByVal Shift As Integer)
'Variable de l'image
Dim Photo As String
Dim dossier As String
Dim PhotoEnVrai As String
'affectation de l'image
Photo = "Laurent Crendal.bmp"
dossier = "I:\_____IMAGES\BELOTTE 2020 - Excel et VBA 2019\Personnes\"
'concaténation => obtention PhotoReel
PhotoEnVrai = dossier & PhotoEnVrai
dossier.Shapes.AddPicture "I:\_____IMAGES\BELOTTE 2020 - Excel et VBA 2019\Personnes\", True, True, Left:=45, Top:=50, Width:=200, Height:=200
End Sub |
Partager