Visio Guy

Visio Discussions => Programming & Code => Topic started by: ImAPictureFormat on January 16, 2020, 04:09:28 PM

Title: Disabling events on particular cells in shape master
Post by: ImAPictureFormat on January 16, 2020, 04:09:28 PM
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!