I'm running the following the code:
The problem is with these two lines:
If I comment out these lines the code works fine. If I run it with these two lines, the first line deletes the chart but I get the error and it hangs up at that line. I have this procedure assigned to a button on a separate sheet. If I run it once (with those lines commented out) I have no problems. If I run it a second time (with the lines commented out), however, the first chart is still there and the second chart gets messed up. What I'm trying to do is delete the first chart before making the second one. How do I do this?
Bookmarks