Sub InsertImage()
Dim i As Long, nom As String, cel As Range, rep, img
ActiveSheet.DrawingObjects.Delete
With Sheets("CAT")
.Activate
For i = 2 To 23
.Cells(i, 4).RowHeight = 92.25
Next i
Columns("D:D").ColumnWidth = 14
For Each cel In .Range("c3:c20")
nom = cel.Offset(0, 0).Value
If nom <> "" Then
cel.Offset(0, 1).Select
rep = " C:\Users\poste\Pictures\" & nom & ".jpg"
Set img = ActiveSheet.Pictures.Insert(rep)
img.Select
With Selection.ShapeRange
.LockAspectRatio = msoTrue
.Top = cel.Offset(0, 1).Top
.Height = cel.Offset(0, 1).Height
.Width = cel.Offset(0, 1).Width
End With
End If
Next cel
End With
End Sub