Im trying to paste my graph into the same excel spreadsheet but have it so it keeps the source formatting.
I tried recording a macro but that doesnt display any code when I paste, after googling I found that you can paste it into PowerPoint (Found here) the ExecuteMso
can be explained in the link to MSDN.
The reason I need to paste the charts back into excel while keeping the souce formatting is I will need to make multiple charts but then get information from them, such as legend etc etc
Edit:
Code I have tried so far and comes up with one error or another
Sheets("Sheet1").ChartObjects(1).CopyPicture
Sheets("Sheet1").Paste Destination:=Worksheets("Sheet1").Range("I18")
ActiveSheet.ChartObjects(1).Activate
ActiveChart.ChartArea.Copy
'Application.CommandBars.ExecuteMso "PasteExcelChartSourceFormatting"
'ActiveSheet.PasteSpecial Format:="Keep Chart Source Formatting" Link:=False _
DisplayAsIcon:=False
'ActiveSheet.PasteSpecial Format:="PasteExcelChartSourceFormatting" Link:=False _
DisplayAsIcon:=False