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

Article translations Article translations
Article ID: 829717 - View products that this article applies to.
Expand all | Collapse all

On This Page

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 = FALSE

End 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 = True

End 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:
http://www.microsoft.com/office/visio

Properties

Article ID: 829717 - Last Review: April 17, 2007 - Revision: 3.2
APPLIES TO
  • Microsoft Office Visio Professional 2007
  • Microsoft Office Visio Standard 2007
  • Microsoft Office Visio Professional 2003
  • Microsoft Office Visio Standard 2003
Keywords: 
kbinfo KB829717

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com