saltire1963
Board Regular
- Joined
- Aug 11, 2014
- Messages
- 69
I have a button in a worksheet that when clicked takes data from that same sheet and creates 3 dynamic charts embedded in same sheet. I want to get rid of the old charts the next time I click the button so that I don't build over the top of the old charts with the new ones. I start my sub with ChartObjects.Delete and any existing charts are deleted as expected, however if I run my code again when there a no charts in the sheet I get a Run-time error. '1004' This is the same as would happen if someone deleted the charts in the worksheet and then clicked the button. Is there a way I can avoid this error? Thanks in advance