Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: jmw_visio on February 03, 2016, 08:45:13 PM

Title: Action when a shape is deleted
Post by: jmw_visio on February 03, 2016, 08:45:13 PM
I have a Master shape that I would like to run a macro when the shape is deleted from a page.

I see OnDrop, and others but no OnDelete

Any ideas how I could achieve this?

Thanks
Title: Re: Action when a shape is deleted
Post by: Surrogate on February 03, 2016, 09:40:06 PM
ShapeSheet haven't OnDelete, you need use VBA's BeforeShapeDelete event
Quote from: Paul Herber on October 21, 2011, 02:40:02 PM
It's the BeforeShapeDelete event

http://msdn.microsoft.com/en-us/library/ff766835.aspx (http://msdn.microsoft.com/en-us/library/ff766835.aspx)
Title: Re: Action when a shape is deleted
Post by: jmw_visio on February 03, 2016, 10:51:39 PM
Thanks
Great more VBA....