Author Topic: Disabling events on particular cells in shape master  (Read 1195 times)

0 Members and 1 Guest are viewing this topic.


  • Jr. Member
  • **
  • Posts: 17
Disabling events on particular cells in shape master
« on: January 16, 2020, 11:09:28 AM »
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!