ALT+F11打开VBA编辑器,点击插入->模块
Sub insert()
Dim myPath$, myFile$, c As Range
myPath = "E:路径\"
myFile = Dir(myPath & "*" + "_transmission.png")
For Each c In Range("b3:b52")
With c
If myFile <> "" Then
ActiveSheet.Shapes.AddPicture myPath & myFile, True, True, .Left, .Top, .Width, .Height
myFile = Dir
Else: Exit For
End If
End With
Next
End Sub