Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PUBLISHED BY
Microsoft Press
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399
All rights reserved. No part of the contents of this book may be reproduced or
transmitted in any form or by any means without the written permission of the publisher.
1 2 3 4 5 6 7 8 9 QWT 6 5 4 3 2 1
A CIP catalogue record for this book is available from the British Library.
Microsoft Press books are available through booksellers and distributors worldwide. For
further information about international editions, contact your local Microsoft Corporation
office or contact Microsoft Press International directly at fax (425) 706-7329. Visit our
Web site at www.microsoft.com/mspress. Send comments to
mspinput@microsoft.com.
Acquisitions Editor:
Kong Cheung
Project Editor:
Jean Cockburn
Technical Editor:
Dail Magee, Jr.
CD Content
When you first start writing macros in Excel, you need to learn two different skills. First,
you need to learn how to work with VBA. Everything you learn about VBA will be true not
only for Excel, but also for other applications that incorporate VBA. Second, you need to
learn how to control Excel. The more you know about Excel as a spreadsheet
application, the more effective you can be at developing macros that control Excel.
While this book focuses on VBA as Excel's development environment, much of what you
will learn will help you be more effective using spreadsheets as well.
Microsoft Excel 2002 Visual Basic for Applications Step By Step walks you through
tasks one at a time, keeping you on track with clear instructions and frequent pictures of
what you should see on your screen. In each section, you'll become familiar with another
important aspect of Excel or VBA.
You'll notice some changes as soon as you start Microsoft Excel 2002. The toolbars and
menu bar have a new look, and there's a new task pane on the right side of your screen.
But the features that are new or greatly improved in this version of Excel go beyond just
changes in appearance. Some changes won't be apparent to you until you start using
the program.
CD Content
Back Cover
Learning about VBA and about how Excel works with VBA can seem overwhelming.
That's why you need this book. It starts with simple, practical tasks and then takes you
on to advanced concepts and powerful applications.
Every effort has been made to ensure the accuracy of this book and the contents of its
CD-ROM. If you do run into problems, please contact the appropriate source for help
and assistance.
Getting Help with This Book and Its CD-ROM
If your question or issue concerns the content of this book or its companion CD-ROM,
please first search the online Microsoft Knowledge Base, which provides support
information for known errors in or corrections to this book, at the following Web site:
http://mspress.microsoft.com/support/search.htm
If you do not find your answer at the online Knowledge Base, send your comments or
questions to Microsoft Press Technical Support at:
mspinput@microsoft.com
Using the
Book’s CD-
ROM
Microsoft Excel
Contents
2002 Visual Basic
System for Applications
Requirements Step by Step
Installing the
byReed Jacobson
Practice Files
Using the Microsoft Press
Practice Files 2001
Uninstalling the CD Content
Practice Files
Using the Book's CD-ROM
CD Content
The CD-ROM inside the back cover of this book contains all the practice files you'll use
as you work through the exercises in this book. By using practice files, you won't waste
time creating samples and typing spreadsheet data-instead, you can jump right in and
concentrate on learning how to use Excel 2002.
The CD-ROM does not contain the Excel 2002 software. You should
Important
purchase and install that program before using this book.
Before you break the seal on the CD package, be sure that this book
matches your version of the software. This book is designed for use with
Microsoft Excel 2002 (version 10) or Microsoft Office XP Professional,
Professional Special Edition, or Developer for the Windows 98, Windows
NT, Windows 2000, Windows Me, or Windows XP operating systems. To
find out what software you're running, you can check the product
Important
package or you can start the software, and then on the Help menu click
About Microsoft Excel. If your program is not compatible with this book,
a Step by Step or Fundamentals book matching your software is
probably available. Please visit our World Wide Web site at
http://www.microsoft.com/mspress or call 1-800-MSPRESS for more
information.
System Requirements
To use this book, you will need:
In general, this book assumes that your environment matches the default settings for
Excel. If you find that your copy of Excel or the Microsoft Visual Basic Editor doesn't
behave the way the book describes, compare your custom settings with those described
here.
Excel Environment
The settings for Excel are separate from the settings in the Visual Basic Editor.
Conventions
and Features
Microsoft Excel
2002 Visual Basic
for Applications
Step by Step
Contents
byReed Jacobson
Microsoft Press 2001
CD Content
Conventions and Features
You can save time when you use this book by understanding how the Step by Step
series shows special instructions, keys to press, buttons to click, and so on.
Convention Meaning
1.
Numbered steps guide you through hands-on exercises in each
2. topic.
This icon at the beginning of a chapter lists the files that the
lesson will use and explains any file preparation that needs to
On the CD take place before starting the lesson. Practice files that you'll
need to use in a topic's procedure are shown above the CD
icon.
This section provides a helpful hint or shortcut that makes
Tip working through a task easier.
This section points out information that you need to know to
Important complete the procedure.
Troubleshooting This section shows you how to fix a common problem.
Save When a button is referenced in a topic, a picture of the button
appears in the margin area with a label.
A plus sign (+) between two key names means that you must
press those keys at the same time. For example, 'Press
Alt+Tab
Alt+Tab' means that you hold down the Alt key while you press
Tab.
Blue boldface Text that you are supposed to type appears in blue boldface
type type in the procedures.