Could anyone help me with this one?
I want to copy a chart from one sheet to another. Now I've got this far on my own but its not woking like i want it to
Private Sub cbtnPrint_Click()
With ThisWorkbook
.Sheets("TempData").ChartObjects("Diagram 20").Chart.ChartArea.Copy
.Sheets("Plot").Paste
End With
Unload Me
End Sub
The first problem is that when pasted the chart area flashes, and it doesnt stop untill I double click on it (anyone herd of this problem before?).
The second problem is that the chart doesnt paste where I want it to on the sheet. I tried to solve this by drawing the "first" chart manually and then just pasting the "new" chart in that chart area. Like this:
Private Sub cbtnPrint_Click()
With ThisWorkbook
.Sheets("TempData").ChartObjects("Diagram 20").Chart.ChartArea.Copy
.Sheets("Plot").ChartObjects("Diagram 6").Chart.ChartArea.Paste
End With
Unload Me
End Sub
But that didnt work at all all I got was this error message "Object doesn't support this property or method"
Anyone with helpful advices?
I want to copy a chart from one sheet to another. Now I've got this far on my own but its not woking like i want it to
Private Sub cbtnPrint_Click()
With ThisWorkbook
.Sheets("TempData").ChartObjects("Diagram 20").Chart.ChartArea.Copy
.Sheets("Plot").Paste
End With
Unload Me
End Sub
The first problem is that when pasted the chart area flashes, and it doesnt stop untill I double click on it (anyone herd of this problem before?).
The second problem is that the chart doesnt paste where I want it to on the sheet. I tried to solve this by drawing the "first" chart manually and then just pasting the "new" chart in that chart area. Like this:
Private Sub cbtnPrint_Click()
With ThisWorkbook
.Sheets("TempData").ChartObjects("Diagram 20").Chart.ChartArea.Copy
.Sheets("Plot").ChartObjects("Diagram 6").Chart.ChartArea.Paste
End With
Unload Me
End Sub
But that didnt work at all all I got was this error message "Object doesn't support this property or method"
Anyone with helpful advices?