J
Jumper2
I'm building a solution that deploys shapes and VBA code within a
stencil. I'd like to catch when certain shapes are deleted. It
appears that there is no way to receive BeforeShapeDelete events just
for the shapes I'm interested in, even if I explicitly AddAdvise a
handler onto the EventList of the shape.
If a user places the shape onto a page, then groups it with other
shapes, the only delete event received is for the highest level shape
that is deleted. Thus any solution that wants to catch deletes of a
certain set of shapes must catch all deletes and check that there are
no shapes of interest in the lower groups.
Is this the case? Is there anyway of attaching what would be the
equivalent of a C++ destructor to a specific object?
Thanks,
-James
stencil. I'd like to catch when certain shapes are deleted. It
appears that there is no way to receive BeforeShapeDelete events just
for the shapes I'm interested in, even if I explicitly AddAdvise a
handler onto the EventList of the shape.
If a user places the shape onto a page, then groups it with other
shapes, the only delete event received is for the highest level shape
that is deleted. Thus any solution that wants to catch deletes of a
certain set of shapes must catch all deletes and check that there are
no shapes of interest in the lower groups.
Is this the case? Is there anyway of attaching what would be the
equivalent of a C++ destructor to a specific object?
Thanks,
-James