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.
 
Top