Macro samples to show and hide the Search for Shapes box on the Shapes task pane in Visio 2007 and in Visio 2003

Support for Office 2003 has ended

Microsoft ended support for Office 2003 on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article has been archived. It is offered "as is" and will no longer be updated.
Summary
This article contains sample macros that you can use to hide and to show the Search for Shapes box that is displayed on the Shapes task pane in Microsoft Office Visio 2007 and Microsoft Office Visio 2003.
More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Macro to hide the "Search for Shapes" box on the Shapes task pane

To hide the Search for Shapes box on the Shapes task pane in Visio, create a macro that contains the following code:
Sub ShapeSearchHide() ActiveWindow.Windows.ItemFromID(Visio.visWinIDShapeSearch).Visible = FALSEEnd Sub

Macro to show the "Search for Shapes" box on the Shapes task pane

To show the Search for Shapes box on the Shapes task pane in Visio, create a macro that contains the following code:
Sub ShapeSearchShow() ActiveWindow.Windows.ItemFromID(Visio.visWinIDShapeSearch).Visible = TrueEnd Sub
For more information about how to search for shapes in Visio, see Visio Help. To do so, on the Help menu, click Microsoft Office Visio Help, type finding shapes in the Search for box, and then press ENTER to view the topics that are returned.

For more information about Visio, visit the following Microsoft Web site:
kbnoOfficeAlertID vso11 vso12 vso2003 vso2007
Properties

Article ID: 829717 - Last Review: 01/10/2015 14:43:06 - Revision: 4.0

Microsoft Office Visio Professional 2007, Microsoft Office Visio Standard 2007, Microsoft Office Visio Professional 2003

  • kbnosurvey kbarchive kbinfo KB829717
Feedback