详细源码:Sub 批量导出图片() Dim shp As Shape Dim FileName As String For Each shp In Sheet1.Shapes If shp.Type = msoPicture Then FileName = ThisWorkbook.Path & "\" & shp.Name & ".gif" shp.Copy With Sheet1.ChartObjects.Add(0, 0, shp.Width, shp.Height).Chart .Paste .Export FileName, "gif" .Parent.Delete End With End If Next End Sub