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



The information in this article applies to:

  • Microsoft Office Visio Professional 2003
  • Microsoft Office Visio Standard 2003

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 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 2003, 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 2003, 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 2003, 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 2003, visit the following Microsoft Web site:

Modification Type:MinorLast Reviewed:7/26/2006
Keywords:kbinfo KB829717 kbAudITPRO kbAudDeveloper