Dim mychart As Chart
Set mychart = Sheets("Sheet3").SelectActiveSheet.ChartObjects(2).Chart
mychart.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
ActiveSheet.Paste Destination:=Sheets("Sheet1").Range("B50")
End Sub作者: wind6424 時間: 2020-5-24 00:40
更正一下圖表轉成圖檔程式,精簡程式時 Set mychart=...部份複製錯了
Sub Macro1()
' 圖表轉成圖檔
Dim mychart As Chart
Set mychart = Sheets("Sheet3").ChartObjects(2).Chart
mychart.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
ActiveSheet.Paste Destination:=Sheets("Sheet1").Range("B50")