always_confused
Board Regular
- Joined
- Feb 19, 2021
- Messages
- 68
- Office Version
- 2016
- Platform
- Windows
Hello, I am trying to write a macro that builds a chart when it is run. However, if the chart already exists (ie if the macro has already been run at least once), I would to delete the existing chart and create a new one. To be honest the whole ChartObject vs Chart thing is not very clear to me, so I can't figure out how to delete my chart.
I'm trying to do something like
I'm trying to do something like
VBA Code:
On Error Resume Next
'somehow delete the chart
On Error GoTo 0
Last edited: