Visio Guy

Visio Discussions => Visio Bugs (er...Issues) => Topic started by: d310gece on May 30, 2014, 07:24:30 AM

Title: Can't exit design mode because Control 'Name' can not be created
Post by: d310gece on May 30, 2014, 07:24:30 AM
Hi,
Maybe this question has been answered before, but I can't find it in forum or on internet.
I have a drawing and I can't get out of Design Mode. I get VB error Can't exit design mode because Control 'TextBox1' can not be created. I can't find that text box in my drawing, but in VB when I open ThisDocument section in left top corner of code window where I can select a macro and there is that TextBox1.
I delete it but error stays. I haven't referenced it anywhere in my code.

Any suggestions how can I solve it ?

Title: Re: Can't exit design mode because Control 'Name' can not be created
Post by: zorkhan on February 18, 2015, 01:22:39 PM
I have the same problem with drawings that were created in Visio 2010 and now opened in 2013. It occurs with 2 standard cmdButtons. Does anyone have a fix for this?
Title: Re: Can't exit design mode because Control 'Name' can not be created
Post by: zorkhan on February 18, 2015, 03:38:37 PM
I found a fix. There was a security patch from Microsoft that left behind some files. To correct, search your temp directory for any file named 'MSForms.exd' and delete them. You may find them in several folders. They will be recreated the first time you use each Office app.
Title: Re: Can't exit design mode because Control 'Name' can not be created
Post by: kedas on February 23, 2015, 10:41:35 AM
http://support.microsoft.com/kb/3025036/EN-US

But if it doesn't work, and it usually doesn't you have to uninstall a KB to fix this problem.  (keep in mind the KB will most likely reinstall itself again after some time)
based on your Office version: (not Visio version!)
Security Update for Microsoft Office 2007 (KB2596927)
Security Update for Microsoft Office 2010 (KB2553154)
Security Update for Microsoft Office 2013 (KB2726958)

------------------------------------------------------------------------------

Some related bug, I can use suggestions:
On my PC if I add a new control textbox of (Microsoft Forms 2.0)
It works on my PC but the file is corrupt on any other PC (VBA fails to start Run-time Error '32809' )
Deleting the control (also the master if there is any) fixes the file again.
Adding the control on another PC and keep using the file again on my PC doesn't create the problem, I assume some/all ActiveX inserts on my PC are a problem on another PC.

ideas to fix it are welcome.
Using Windows 7 64bit, Visio 2007, Office 2013
Example file attached (contains, 1 texbox control and test sub)
Title: Re: Can't exit design mode because Control 'Name' can not be created
Post by: daihashi on February 27, 2015, 11:46:58 PM
It may be related to an update from Microsoft that was published in December of 2014. The update seemingly broke activex based controls.

To resolve this:
Title: Re: Can't exit design mode because Control 'Name' can not be created
Post by: d310gece on March 02, 2015, 06:03:12 AM
I tried all solutions, but it didn't solve my problem. I still have to do something to the form and then undo changes to make it working.
Title: Re: Can't exit design mode because Control 'Name' can not be created
Post by: kedas on March 19, 2015, 06:50:22 PM
Seems MS has released a new batch of KBs in the automatic updates and it's broken again.
If you know which KB(s) to remove to make it work again please share the info.

Thanks
Title: Re: Can't exit design mode because Control 'Name' can not be created
Post by: kedas on March 20, 2015, 12:51:42 PM
installing this KB fixed my Visio 2007:  (with office 2013 on Win 7)
http://www.microsoft.com/en-us/download/confirmation.aspx?id=46184

Info from:
http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2014/12/11/forms-controls-stop-working-after-december-2014-updates-.aspx