文档介绍:Contents at a Glance
Part I Programming in Excel VBA
Chapter 1 The Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Chapter 2 Variables, Arrays, Constants, and Data Types . . . . . . . . . . . . . . . 13
Chapter 3 Modules, Functions, and Subroutines . . . . . . . . . . . . . . . . . . . . . 27
Chapter 4 Programming Basics: Decisions and Looping . . . . . . . . . . . . . . . . . 35
Chapter 5 Strings and Functions and Message Boxes . . . . . . . . . . . . . . . . . 45
Chapter 6 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Chapter 7 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Chapter 8 Errors and the Error Function . . . . . . . . . . . . . . . . . . . . . . . . . 91
Chapter 9 Dialogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Chapter mon Dialog Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Chapter mand Bars and Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Part II Object Models
Chapter 12 The Excel Object Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Chapter 13 The Excel Object Model—Main Objects . . . . . . . . . . . . . . . . . . . 151
Chapter 14 Using Excel to Interact with Other Office Programs . . . . . . . . . . . . 171
vii
viii Excel 2007 VBA Macro Programming
Part III Advanced Techniques in Excel VBA
Chapter 15 Charts and Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Chapter 16 Working with Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Chapter 17 API Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
Chapter 18 Class Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Chapter 19 Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Chapter 20 Working with XML Files . . . .