Disabling events on particular cells in shape master

Started by ImAPictureFormat, January 16, 2020, 04:09:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


I have a stencil with a set of master shapes. In the document in which I use the stencil shapes, I have a CellChanged handler that gets called whenever any cell belong to a shape changes, many of which I don't actually care about.

Is there a way to disable the CellChanged event for a cell I'm not interested in monitoring, for example the FillForegnd cell, either in the stencil or in the document that uses the stencil?

Could it be accomplished with the EventList property of the cells in a shape? Something like:

Dim mstr As Visio.Master
' Set mstr to master from stencil

mstr.Cells("FillForegnd").EventList(visEvtMod+visEvtCell).Enabled = False

Thanks in advance!