Hmm, no need to use MS paint. Paste copied item into excel worksheet using following (it will create shape).
After you copy img to clipboard.
ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
False
Then combine it with Chart.Export method. Something like below.
Dim myPic As Shape
ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
False
Set myPic = ActiveSheet.Shapes(1)
myPic.Copy
With ActiveSheet.ChartObjects.Add(myPic.Left, myPic.Top, myPic.Width, myPic.Height)
.Name = "Blah"
.Activate
End With
ActiveChart.Paste
With ActiveSheet.ChartObjects("Blah")
.Chart.Export ThisWorkbook.Path & "\Test" & ".png", "PNG"
.Delete
End With
myPic.Delete
Bookmarks