Hi
I've used the code below to move a chart from one sheet to another (from Sheet 5 to cell M2 in Sheet 1).
However, when re-running the code to create the chart, I would like to delete the existing chart in cell M2 of Sheet 1, without deleting the other charts in Sheet 1.
Does anyone know how to do this, please?
TIA
I've used the code below to move a chart from one sheet to another (from Sheet 5 to cell M2 in Sheet 1).
However, when re-running the code to create the chart, I would like to delete the existing chart in cell M2 of Sheet 1, without deleting the other charts in Sheet 1.
Does anyone know how to do this, please?
TIA
Code:
Sub MoveChart()
Sheet5.Activate
ActiveSheet.ChartObjects(1).Cut
Sheet1.Activate
Range("M2").Select
ActiveSheet.Paste
End Sub
Last edited: