Sub AfficheImage()
Application.ScreenUpdating = False
On Error Resume Next
xNomGénériqueImage = "MonImage"
ActiveSheet.Shapes.Range(Array("" & xNomGénériqueImage & "")).Delete
xRépertoireImage = "lienversimage\"
xFichierImage = Dir(xRépertoireImage & "\" & Range("J5").Value & ".*")
Nf = xRépertoireImage & "\" & xFichierImage
If Dir(Nf) <> "" Then
Set C = Range("H8").MergeArea
With ActiveSheet
.Pictures.Insert(xRépertoireImage & xFichierImage).Name = xNomGénériqueImage
.Shapes(xNomGénériqueImage).Left = C.Left
.Shapes(xNomGénériqueImage).Top = C.Top
.Shapes(xNomGénériqueImage).LockAspectRatio = msoFalse
.Shapes(xNomGénériqueImage).Height = C.Height
.Shapes(xNomGénériqueImage).Width = C.Width
End With
End If
Application.ScreenUpdating = True
End Sub