BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Unable to save password protected macros?

Started by stugol, December 15, 2012, 02:05:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Hi, I have a template with macros that is password protected and created in Visio 2010, and the user can't open the codes as it's password protected.

When opened in Visio 2013, everything works well, but if saved in .vsdm or even exported or saved in "Visio 2003-2010" format, the entire code module is clean, gone, nothing, unprotected. All codes are lost. Is it just me or am I doing anything wrong?

If I unprotect the code modules, Visio 2013 saves into .vsdm files fine. Can't seem to find any google answers, so any help will be much appreciated.


I'm using the rtm v2013. I added vba code to a new document, attempt to save as vsdx and it fails because it recognizes that code is embedded and tells me to save as vsdm. I save as vsdm (complete's successfully). I then re-open the file vsdm file and the code is there.
I then attempt to save as a vsd and get the compatibility warning, continue the save. re-open the vsd file in v2013 and the vba code is there.  Open the vsd file in v2010 and get a (valid) security warning about macros - select enable content - the code is in the document ane executes correctly.
short answer - limited testing works on my system


Thanks aledlund for the reply but alas, the critical word here is "password protected".

1. Create a template with some codes and password protect the codes in V2010.
2. Open the file in V2013. Everything's OK at this point.
3. Save the file as vsdm. Still OK.
4. Re-open the vsdm file and all codes are gone.

If your codes are not password protected, everything works fine. I have at least 2 users / system that is able to duplicate the problem.


afaik there is no password protect as a standard feature in v2010. How do you accomplish that?


1. Press F11 to open vba.
2. Right click on your file name & select properties.
3. Select the right most tab, and choose protect, and add password.

Hope that helps.


First, thank you very much for this. I was able to recreate it without building a template file
read protected vsd into v2013
save as v2013 vsdm (protection remains and vba is ok)
save as v2010 vsd, vba disappears and is unprotected.

I'll pass it along but I strongly suggest that since my feedback is not a formal bug report, that you (or your clients) open a forma report with MS.
thanks again,


Thanks Al, so it's not just me. Are there a specific way I can submit a bug or should I do it through the forums? Thanks in advance. By the way, for me, the first save as vsdm is also problematic,  it work well when you save it but close and reopen it and all codes are gone.


Based on this "Although Visio 2013 RTM is available to MSDN TechNet subscriber, it's not general available yet.", the support for v2013 isn't really defined yet. You might start over here

I didn't try to see if v2013 is in the list, but since your scenario involves v2010 you might try that.


Got a reply from Microsoft forum saying the inability of V2013 to save protected macros is a "feature". Therefore if you are one of the millions of developer out there who uses password protection for their codes, will all lose the ability of their software to function in V2013 unless they open up their codes, and even then, the user has to specifically ke in the password to ensure that the software continues to work.

Huh? Your comments or suggestions are most welcome at this point.


It's not a bug, it's a feature...

Where have I heard this one?  :)


Makes you just sit there and shake your head in amazement...

Paul Herber

Electronic and Electrical engineering, business and software stencils for Visio -



It's been reviewed and logged as an issue. It still needs to be formally entered with a ticket through the support organization.

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 387 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1213KB.
Tokens: post-login.
Cache hits: 14: 0.00234s for 26,767 bytes (show)
Cache misses: 3: (show)
Queries used: 17.

[Show Queries]