Exploring the Object Models of the Office Products
Figuring Out Object Models
Working with the Object Browser: Access
Knowing the Interactive Product: Word
Mining the Help File: Excel
Using the Macro Recorder: PowerPoint
Working with Active Objects
Active Properties in Office
Excel’s Active and Selection Properties
Word’s Active and Selection Properties
The Access Screen Object
Using Another Product’s Features with Automation
Expanding Your Horizons Using Automation
Getting to the Object Model
Working With an Existing Instance
Working with Data Using ADO
Introducing ActiveX Data Objects
Working with Data in Recordsets
Moving Through a Recordset
Creating a Recordset Based on a SQL String
Adding a Recordset to a Worksheet
How and When to Use DAO
Techniques with VBA Variables
Scope, Lifetime, and Precedence
Passing by Value and by Reference
Optional Arguments
Adding Data to Excel, Access, and Outlook
Using VBA to Work with Data
Adding Values to an Excel Worksheet
Adding ADO Data to Excel
Adding a Database Record with ADO
Working with the ADO Command Object
Adding an Item to Outlook
Adding Content to Word and PowerPoint
Adding Text to a Word Document
Adding Content to PowerPoint
Charting Your Data
Excel’s Chart Object
Creating a Chart
Creating an Excel Chart from Access
Pasting Excel Charts Into Other Documents
Giving Your Solutions to Others
Sharing the Wealth
Using Custom Toolbars
Office Templates and Add-Ins
Securing Your Code
Using the Developer Edition to Deploy Solutions