bonsoir, SVP qu’est ce qu’ on peut changer ici pour avoir la meme photo dans 2 emplacements différents en meme tps
Private Sub UserForm_Activate()
Dim Emplacement As Range
Dim img As Object
Dim ShapeObj As Shape
'Boucle pour supprimer l'ancienne image
For Each ShapeObj In Sheets("feuil4").Shapes
If ShapeObj.Name = "Cible" Then Sheets("feuil4").Shapes("Cible").Delete
Next ShapeObj
If Application.Dialogs(xlDialogInsertPicture).Show Then
'Définit l'emplacement de l'image
Set Emplacement = Range("H39:I42")
Set img = ActiveSheet.DrawingObjects(ActiveSheet.Shapes.Count)
With img.ShapeRange
'Nommer l'image insérée (Pour la supprimer plus facilement ensuite)
.Name = "Cible"
.LockAspectRatio = msoFalse
.Left = Emplacement.Left
.Top = Emplacement.Top
.Height = Emplacement.Height
.Width = Emplacement.Width
End With
Else
MsgBox "Insertion d'image interrompue."
End If
End Sub