How to remove a drawn chart object using VBA.

R

Raas

I have a school project that requires me to draw a polygon on a chart
(through VBA), then using a macro button, change the points of the polygon
and re-draw it. I must eliminate the first polygon before, or immediately
after drawing the second one. This way it will look like it's rotating
around an axis. I have the points drawn, I have the polygon filled in with
color. I can rotate the nodes if I use CNTL =. I need to be able to press a
button, have CNTL plus = function properly, then remove the first polygon and
draw the next one.

Help anyone?
 
R

Raas

Good try, but this link only showed how to draw the polygon, not delete and
redraw. I do appreciate the information for other purposes however. I did
figure it out myself. Thanks
 
A

Andy Pope

I assume then that you worked out you need something like.

Activechart.Shapes(1).Delete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top