Chapter 12

Working with the Office Assistant

The Office Assistant provides a common interface for displaying Help information and tips to users who are working with any Office application. To allow Visual Basic for Applications solutions to use the Office Assistant as well, each Office application provides an Assistant property on the Application object. This property returns a reference to the Assistant object, as defined in the shared Microsoft Office 9.0 Object Library. By using the Assistant in your custom solution, you can provide Help tips that explain how to use your custom dialog box or wizard. You can also display a set of ways to get more information. Since the objects, methods, and properties associated with the Office Assistant are defined in the Microsoft Office 9.0 Object Library, you can write code that can be shared among, and executed in, all the Office applications without having to tailor the code to each one.

This chapter describes the Assistant and Balloon objects, along with their associated methods. It also contains an example that shows you how to create a custom dialog box with a button similar to the ones in wizards and in dialog boxes across the Office suite of applications that display the Office Assistant. This would be a button like the one at the bottom left of the Customize dialog box, which you access by clicking Customize on the Tools menu in any Office application. You build the functionality of the custom dialog box by using the FileSearch object, methods, and properties, which are also defined in the Microsoft Office 9.0 Object Library. The FileSearch object allows your code to return a list of files from a search with specific criteria.