deleting objects based on the deletion of other objects

M

Michi D.

Hi all,

my problem is as follows:

In case the user deletes an object (a shape or a page) he
should be asked whether he is really sure to do that or
whether he wants to cancel the action - so far so good.
This can be done by 'Document_QueryCancelPageDelete' and
'Document_QueryCancelSelectionDelete'.

But in case the deletion of the object is ok I want Visio
to automatically delete some other objects. It seems that
it is not possible to delete objects from above mentioned
functions!

Does anybody have an idea how I can manage this?

Best regards,
Michi
 
P

Peter Suter

Hi Michi

use the Event:
Document_BeforeSelectionDelete(ByVal voSel As Visio.Selection)

There you can add some code to select/handle other objects bevore
your selection is deleted...

Try it!

Peter


Hi all,

my problem is as follows:

In case the user deletes an object (a shape or a page) he
should be asked whether he is really sure to do that or
whether he wants to cancel the action - so far so good.
This can be done by 'Document_QueryCancelPageDelete' and
'Document_QueryCancelSelectionDelete'.

But in case the deletion of the object is ok I want Visio
to automatically delete some other objects. It seems that
it is not possible to delete objects from above mentioned
functions!

Does anybody have an idea how I can manage this?

Best regards,
Michi



--
Regards

Peter Suter
Ing.
CH 3255 Rapperswil BE
 

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