The hardest part about Excel programming is finding the right object for the job. Excel’s object library is huge and not always easy to understand. One way to tackle that problem is to categorize the objects by task. The chapters later in this book take that approach, as shown by Table 4-4.
Table 4-4. How this book organizes Excel objects by task
Chapter |
Description |
Covers these objects |
---|---|---|
7, Controlling Excel |
Control Excel’s general options and display and respond to application-level events |
|
8, Opening, Saving, and Sharing Workbooks |
Access workbooks and their properties and respond to workbook events |
|
9, Working with Worksheets and Ranges |
Perform general tasks on ranges of cells including inserting values, search and replace, and formatting and respond to worksheet events |
|
10, Linking and Embedding |
Add comments, hyperlinks, and various OLE objects to worksheets |
|
11, Printing and Publishing |
Create hardcopy and online output from workbooks |
|
12, Loading and Manipulating Data |
Bring data into a workbook from a database or other data source |
ADO objects: DAO objects: |
13, Analyzing Data with Pivot Tables |
Organize, sort, and filter data through pivot tables |
|
14, Sharing Data Using Lists |
Use lists for data entry, filtering, sorting, and sharing data |
|
15, Working with XML |
Import XML data into Excel and export data from workbooks in XML format |
|
16, Charting |
Display numeric data graphically |
|
17, Formatting Charts |
Change low-level aspects of the chart |
|
18, Drawing Graphics |
Create graphics on Excel worksheets |
|
19, Adding Menus and Toolbars |
Add items to the Excel user interface |
|
20, Building Dialog Boxes |
Create forms and use controls in Excel |
Forms 2.0 objects: |
21, Sending and Receiving Workbooks |
Send mail from Excel |
|
22, Building Add-ins |
Load and use add-ins as well as create and distribute new ones |
|
26, Exploring Security in Depth |
Limit edits to sheets and ranges of cells |
|
To give you an overview of how the Excel object library is organized, the following sections break the Excel object library into parts and illustrate how the objects are organized graphically. These illustrations are similar to those found in online Help as shown in Figure 4-10 earlier but are a little more complete (and I think more accurate) than Excel’s Help.
Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.