Chapter 7

Communicating Across Microsoft Office

These days many computing situations require the interaction of two or more Office applications. Such interactions often combine different forms of the same material (such as text, charts, tables, and slides). A company's sales figures, for example, may be stored in a Microsoft Access database, presented in a report written in Microsoft Word, analyzed with a Microsoft Excel worksheet, and summarized in a Microsoft PowerPoint presentation. To be able to use the same content in different Office applications, you need to establish communication among them.

In Visual Basic for Applications, you make a connection between two applications either by using the Visual Basic functions CreateObject or GetObject or by using the keyword New in a declaration statement. Either of the two functions or the keyword New establishes a link to another Office application, giving you the power to use content from one application inside another.