Visio Containers not acting as containers after being saved to a stencil?

Laura Garinger 0 Reputation points
2026-07-08T21:57:42.76+00:00

I'm setting up some templates for Visio that include containers, but when I add them to a stencil and drag them back out, the containers just behave as regular shapes rather than containers. How can I make it so the containers stay containers?

Thanks

Microsoft 365 and Office | Visio | Other | Windows
0 comments No comments

1 answer

Sort by: Newest
  1. Anonymous
    2026-07-08T22:58:50.15+00:00

    Hi Laura

    Thank you for reaching out and for sharing your concern. 

    What you are seeing comes down to how Visio stores "container" behavior. It is not stored in how the shape looks. It lives in a hidden ShapeSheet cell called User.msvStructureType, which must be set to "Container". When you drag a container onto a stencil, Visio saves the geometry but does not reliably carry that cell into the new master, so it comes back out as a plain shape. 

    The good news is that a master you have already saved can be repaired so it keeps working as a true container. 

    To fix a master you have already saved to your stencil: 

    1. Turn on the Developer tab if it is not showing. Go to File > Options > Customize Ribbon, tick Developer, then select OK. 

    User's image

    1. In your stencil (in edit mode, with the floppy disk icon showing), right-click the container master, point to Edit Master, then select Edit Master Shape.  

    User's image

    1. Select the container shape in that window, then on the Developer tab select Show ShapeSheet > Shape. 
    2. Scroll to the User-Defined Cells section and look for a row named User.msvStructureType:  
      • If it exists, set its value to "Container" (with the quotes). 

    User's image 

    • If it is missing, right-click the ShapeSheet, choose Insert Section > User-Defined Cells, add a row, rename it msvStructureType, and set the value to "Container". 
    1. Close the ShapeSheet, close the master edit window, and select Yes when Visio asks to update the master. 
    2. Right-click the stencil title bar and select Save.  

    I hope this information is helpful. Please follow the steps above and let me know if it works for you. If not, we can continue working together to resolve the issue.  

    If you found the response useful, please consider marking it as accepted, as this may help other community members who are looking for similar guidance.  

    Thank you for your patience and understanding. I look forward to continuing the conversation.  


    If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.     

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.