Writing Excel Macros with VBA

Front Cover
"O'Reilly Media, Inc.", 2002 - Computers - 549 pages
0 Reviews

Newly updated for Excel 2002, Writing Excel Macros with VBA, 2nd Edition provides Excel power-users, as well as programmers who are unfamiliar with the Excel object model, with a solid introduction to writing Visual Basic for Applications (VBA) macros and programs for Excel. In particular, the book focuses on:

  • The Visual Basic Editor and the Excel VBA programming environment. Excel features a complete, state-of-the-art integrated development environment for writing, running, testing, and debugging VBA macros.
The VBA programming language, the same programming language used by the other applications in Microsoft Office XP and 2000, as well as by the retail editions of Visual Basic 6.0. The Excel object model, including new objects and new members of existing objects in Excel 2002. Excel exposes nearly all of its functionality through its object model, which is the means by which Excel can be controlled programmatically using VBA. While the Excel object model, with 192 objects, is the second largest among the Office applications, you need to be familiar with only a handful of objects to write effective macros. Writing Excel Macros focuses on these essential objects, but includes a discussion of many more objects as well.

Writing Excel Macros with VBA, 2nd Edition is written in a terse, no-nonsense manner that is characteristic of Steven Roman's straightforward, practical approach. Instead of a slow-paced tutorial with a lot of handholding, Roman offers the essential information about Excel VBA that you must master to write macros effectively. This tutorial is reinforced by interesting and useful examples that solve common problems you're sure to have encountered.

Writing Excel Macros with VBA, 2nd Edition is the book you need to delve into the basics of Excel VBA programming, enabling you to increase your power and productivity.

 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Introduction
1
Part I
7
Preliminaries
9
The Visual Basic Editor Part I
16
The Visual Basic Editor Part II
28
Part II
45
Variables Data Types and Constants
47
Functions and Subroutines
69
The Application Object
191
The Workbook Object
224
The Worksheet Object
243
The Range Object
263
Pivot Tables
332
The Chart Object
397
Smart Tags
463
Part IV
469

Builtin Functions and Statements
78
Control Statements
93
Part III
101
Object Models
103
Excel Applications
115
Excel Events
132
Custom Menus and Toolbars
139
BuiltIn Dialog Boxes
162
Custom Dialog Boxes
167
The Excel Object Model
183
The Shape Object
471
Getting the Installed Printers
484
Command Bar Controls
488
Face IDs
499
Programming Excel from Another Application
505
HighLevel and LowLevel Languages
510
New Objects in Excel XP
520
Index
535
Copyright

Other editions - View all

Common terms and phrases

About the author (2002)

Steven Roman, Ph.D., is a professor emeritus of mathematics at the California State University, Fullerton. His previous books with O'Reilly include "Access Database Design and Programming," "Writing Excel Macros with VBA," and "Win32 API Programming with Visual Basic.

Bibliographic information