How to programmatically delete an object

G

Gerald K

hi guys,

How do you actually delete a visio object using VBA?
For example, say I create an object and drop it onto the page like so:

Set objMstr = mstrShapes("Agent")
Set parentShape = pageObj.Drop(objMstr, pageCtr, curRow)
parentShape.Text = "Agent"

How can I then remove or delete this object? (I don't just want to make it
invisible as it may then still be recognised when I process shapes on the
page.)
 
G

Gerald K

Yes, thanks. I thought that only applied to layers but it does work for
shapes too.
 

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