次の方法で共有


Working with Shared Office Components

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Microsoft Office includes a set of shared objects available in all Office applications that help you search for files, use the Office Assistant, manipulate command bars, read and write document properties, read and write script, and hook add-ins to your Office solution. Because these objects are shared among all Office applications, it is easy to write code that uses these objects and that will run without modification from within any Office application or custom Office solution.

Note   Although COMAddIn objects are a shared Office component in the Microsoft Office 9.0 object library, they are not discussed in this chapter. For information about how to create and use COMAddIn objects, see Chapter 11, "Add-ins, Templates, Wizards, and Libraries."

You can use these objects to customize the appearance of your application, create custom toolbars and menu bars in code, perform custom file searches, or customize the Office Assistant to respond to the user's actions.

Note   Object model diagrams for all the shared Office components discussed here are available in the .

Contents

Referencing Shared Office Components

Working with the FileSearch Object

Working with the Office Assistant

Working with Command Bars

Working with Document Properties

Working with Scripts

Working with the HTMLProject Object

Where to Go from Here