News:

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

Command line option to reset the Visio toolbars etc.

Started by AndyW, October 07, 2008, 07:01:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AndyW

My application hides the lots of the Visio toolbars etc. Any settings that I change, I attempt to reset when my application exits. However, if for any reason my application exits without tidying up the users can be left with Visio showing no toolbars. I created another Visio application that can be run to reset these.

What would be useful is a command line option that can be used to set everything back to the original settings. Better still would be for an application to be able to change these settings temporarily.
Live life with an open mind

Paul Herber

Quote from: AndyW on October 07, 2008, 07:01:53 AM
I created another Visio application that can be run to reset these.

That would be a very useful utility, something that can reset all menus, toolbars, windows etc. back to their default locations.


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

https://www.paulherber.co.uk/

Nikolay

Not only to default, but it would be really great if one could remove
a specific menu/toolbar with this utility from command line
This would fix my uninstall issue here for exmaple... ::)

Barry

Customizations involving controls (add,remove,rename,etc) are stored in a file underneath your profile folder.  One workaround is to shutdown Visio  and then delete  custom*.vsu file (e.g. on Vista this is at C:\Users\<username>\AppData\Roaming\Microsoft\Visio\custom12.vsu).  The version is encoded in the filename, so delete custom*.vsu to cover all bases.

Customizations involving toolbar visibility and positioning are stored in the registry: HKEY_CURRENT_USER\Software\Microsoft\Office\<version>\Visio\Toolbars\State.   Each toolbar has a unique registry value underneath this key.  You can delete these values individually to restore the toolbar visibility/positioning to the default.

Barry

Visio Guy

You can type these two lines into the Immediate window of the VBA editor:


Visio.Application.ClearCustomMenus
Visio.Application.ClearCustomToolbars


That might help a little bit.

Also, there is another thread with a related topic and some code-snippets. You might be able to modify that code a little bit. See:

  Hide ALL toolbars code snippet

For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

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: 241 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1155KB.
Tokens: post-login.
Cache hits: 13: 0.00220s for 26,745 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]