-
Chapter 1 Introduction
-
Chapter 2 Preliminaries
-
What Is a Programming Language?
-
Programming Style
-
-
The VBA Environment
-
Chapter 3 The Visual Basic Editor, Part I
- The Project Window
- The Properties Window
- The Code Window
- The Immediate Window
- Arranging Windows
- Document Events
-
Chapter 4 The Visual Basic Editor, Part II
- Navigating the IDE
- Getting Help
- Creating a Procedure
- Run Mode, Design Mode, and Break Mode
- Errors
- Debugging
- Macros
-
-
The VBA Programming Language
-
Chapter 5 Variables, Data Types, and Constants
- Comments
- Line Continuation
- Constants
- Variables and Data Types
- VBA Operators
-
Chapter 6 Functions and Subroutines
- Calling Functions
- Calling Subroutines
- Parameters and Arguments
- Exiting a Procedure
- Public and Private Procedures
- Referencing a Project
-
Chapter 7 Built-in Functions and Statements
- The MsgBox Function
- The InputBox Function
- VBA String Functions
- Miscellaneous Functions and Statements
-
Chapter 8 Control Statements
- The If… Then Statement
- The For Loop
- The For Each Loop
- The Do Loop
- The Select Case Statement
- A Final Note on VBA
-
-
Objects and Object Models
-
Chapter 9 Object Models
- Objects, Properties, and Methods
- Collection Objects
- Object Model Hierarchies
- Object Model Syntax
- Object Variables
-
Chapter 10 The Word Object Model
- The Word Object Model: A Perspective
- Word Enums
- The VBA Object Browser
-
Chapter 11 The Application Object
- Properties and Methods
- The Options Object
- The Task Object
- The Template Object
- The Window Object
- The Pane Object
- The View Object
- The Zoom Object
-
Chapter 12 The Document Object
- Properties That Return Collections
- Spelling-Related Properties and Methods
- The Documents Collection
- Adding, Opening, and Saving Documents
- Password-Related Properties
- Protection-Related Properties and Methods
- The Name Properties
- Printing-Related Methods
- Additional Members of the Document Object
- Children of the Document Object
- Example: Printing Document Headings
- Example: Finding Used Styles
-
Chapter 13 The Section and HeaderFooter Objects
- Adding a New Section
- The PageSetup Object
- Properties of the Section Object
- The HeaderFooter Object
-
Chapter 14 The Range and Selection Objects
- Comparing the Range and Selection Objects
- Range and Selection Variables
- Creating a Range or Selection Object
- Changing a Range Object
- Range and Selection Object Properties and Methods
-
Chapter 15 The Find and Replace Objects
- Searching for Text
- Searching for Formatting
- The Replace Operation
- The Execute Method
- Example: Repeated Searching
-
Chapter 16 The Table Object
- Formatting-Related Properties and Methods
- The Cell Method
- The Columns and Rows Properties
- The ConvertToText Method
- Sorting Methods
- The Split Method
- Example: Creating Tables from Word Lists
- Example: Closing Up a Table
-
Chapter 17 The List Object
- List Types
- The List Object
- The ListTemplate Object and ListGalleries
- Example: Looking at Lists
-
Chapter 18 Shortcut Key Bindings
- Finding a Key Binding
- Creating a Key Binding
- The KeyBinding Object
-
Chapter 19 Built-in Dialog Objects
- The Show Method
- The Display and Execute Methods
- The DefaultTab Property
- The Type Property
- The Update Method
- Example: Printing Document Statistics
-
Chapter 20 Custom Dialog Boxes
- What Is a UserForm Object?
- Example: Adding a Closing to a Letter
- Example: A Fax Cover Sheet
- Example: Quick Selection
-
Chapter 21 Menus and Toolbars
- An Overview
- CustomizationContext
- The CommandBars Collection
- The CommandBar Object
- Command Bar Controls
-
-
Appendixes
-
Appendix Programming Word from Another Application
- Setting a Reference to the Word Object Model
- Getting a Reference to the Word Application Object
- An Alternative Approach
-
Appendix The Shape Object
- The Shape and InLineShape Objects
- Z-Order
- Creating InLineShapes
- Creating Shapes
- Examples
- WordArt
-
Appendix Getting the Installed Printers
-
Appendix High-Level and Low-Level Languages
- BASIC
- Visual Basic
- C and C++
- Visual C++
- Pascal
- FORTRAN
- COBOL
- Lisp
-
-
Colophon
- Title:
- Writing Word Macros, Second Edition
- By:
- Steven Roman, PhD
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- October 1999
- Pages:
- 410
- Print ISBN:
- 978-1-56592-725-4
- | ISBN 10:
- 1-56592-725-7
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal appearing on the cover of Writing Word Macros is a Beisa oryx (Oryx gazella beisa), a brownish-grey subspecies of East African antelope. The oryx is distinctively marked with black and white face and leg patterns; their white underbelly is outlined with a black stripe. The oryx is about the size of a deer (1.5-2.4 meters long), with slightly curved, parallel, ridged horns up to four feet long; these are used for defense in both sexes.
The Beisa oryx is located throughout eastern Africa, particularly Ethiopia, in short-grass steppes, semi-desert, and savannah habitats, feeding upon leaves, grasses, fruits, and other plant materials. They are gregarious, traveling in herds of a few dozen, and eating several times a day. Their enemies include large cats, such as leopards, lions, and cheetahs, as well as hyenas and human hunters. Their territory has dwindled due to excessive hunting. The Beisa oryx once appeared on one of a series of Ethiopian stamps celebrating the nation's wildlife. Nancy Kotary was the production editor and copyeditor for Writing Word Macros; Jeffrey Holcomb was the production editor coordinating the updates for the revised edition. Sheryl Avruch was the production manager. Kristine Simmons was the proofreader. Mary Anne Mayo, Jane Ellin, and Nancy Kotary provided quality control. Kimo Carter provided production support. Ruth Rautenberg wrote the index. Brenda Miller updated the index for the revised edition. Mike Sierra provided FrameMaker technical support.
Kathleen Wilson designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced with QuarkXPress 3.32 using the ITC Garamond font. Whenever possible, our books use RepKover™, a durable and flexible lay-flat binding. If the page count exceeds RepKover™'s limit, perfect binding is used.
The inside layout was designed by Nancy Priest and implemented in FrameMaker 5.5 by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book. The illustrations that appear in the book were created in Macromedia FreeHand 7 and Adobe Photoshop 4 by Robert Romano. This colophon was written by Nancy Kotary.
