Microsoft KB Archive/829717

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

Article ID: 829717

Article Last Modified on 4/17/2007

-

APPLIES TO


 * Microsoft Office Visio Professional 2007
 * Microsoft Office Visio Standard 2007
 * 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 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 &quot;Search for Shapes&quot; 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 &quot;Search for Shapes&quot; 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

Additional query words: kbnoOfficeAlertID vso11 vso12 vso2003 vso2007

Keywords: kbinfo KB829717

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.