Xem code này nhé
Private Sub CHENHINH_Click()
Dim r, n, c
Dim Pic As String
Application.ScreenUpdating = False
On Error Resume Next
n = [A65536].End(3).Row
For r = 8 To 35 Step 9
For c = 1 To Cells(r, 256).End(2).Column
Pic = Cells(r, c).Value & ".jpg"
Shapes(Pic).Delete
Next: Next
For r = 8 To 35 Step 9
For c = 1 To Cells(r, 256).End(2).Column
Pic = Cells(r, c).Value & ".jpg"
With ActiveSheet.Pictures.Insert(ThisWorkbook.Path & "\" & Pic)
.Name = Pic
.Left = Cells(r, c).Left: .Top = Cells(r, c).Top
.Width = Cells(r, c).Width: .Height = Cells(r, c).Height
End With
Next: Next
Application.ScreenUpdating = True
End Sub