Hiding a Master Shape in Stencil in Visio
Is it possible to hide a master shape in your stencil so that a user cannot drag and drop it on their diagram, while still allowing me to use that object in the diagram programmatical开发者_如何学运维ly?
You can do this by setting the Master's Hidden Property. This can't be set the the UI but it is easy to set in the VBA Immediate window with a statement like this:
Visio.ActiveDocument.Masters("MyMaster").Hidden = True
精彩评论