Synopses & Reviews
Get more done in less time by automating Office tasks
Take control of Office 2010 with Microsoft's Visual Basic for Applications (VBA) and this practical guide. Even if you're not a programmer, you can easily learn to record and write macros, automate tasks, and create your own custom programs for Word, Excel, PowerPoint, Outlook, and Access.
You'll quickly grasp the basics of recording macros with Office 2010's built-in Macro Recorder, before delving into all the essentials: the Visual Basic Editor, VBA syntax, how to use loops and functions, the keys to building effective code, how to debug and secure your code, programming the Office 2010 Ribbon, and much more.
Recording, writing, and running macros in Office 2010
Creating code from scratch with the Visual Basic® Editor
Understanding the essentials of VBA syntax
Finding the objects, methods, and properties you need
Using loops to repeat actions in your code
Creating simple and complex dialog boxes
Adding If statements to make your applications respond intelligently
Programming each Office appWord, Excel®, PowerPoint®, Outlook®, and Access®
Building, debugging, and securing your code
Use VBA to Increase Your Productivity in Office 2010
Simplify Complex Operations with Macros and Automation
Create Custom Apps for Word, Excel, PowerPoint, Outlook, and Access
Reinforce Your Skills with Real-World Examples
Master VBA Fundamentals and Essentials
Create Custom Applications and Macros for Office 2010
Office 2010 brings profound, new ways to extend its applications with VBA programming. This book covers the basics of VBA in clear, systematic tutorials and includes intermediate and advanced content for experienced VB developers. It addresses not just one Office application, but the whole Office suite. Further, all of the content is anchored with solid, real-world projects in Word, Excel, Outlook, PowerPoint, and Access. Topics include recording macros and getting started with VBA; learning how to work with VBA; using loops and functions; using message boxes, input boxes, and dialog boxes; creating effective code; XML-based files, ActiveX, the developer tab, content controls, add-ins, embedded macros, and security.
A comprehensive guide to the language used to customize Microsoft Office
Visual Basic for Applications (VBA) is the language used for writing macros, automating Office applications, and creating custom applications in Word, Excel, PowerPoint, Outlook, and Access. This complete guide shows both IT professionals and novice developers how to master VBA in order to customize the entire Office suite for specific business needs.
- Office 2010 is the leading productivity suite, and the VBA language enables customizations of all the Office programs; this complete guide gives both novice and experienced programmers the knowledge they need to make maximum use of VBA for Office
- Supported with real-world examples in Word, Excel, PowerPoint, Outlook, and Access, this book offers clear, systematic tutorials with both intermediate and advanced content
- Covers learning how to work with VBA; recording macros; using loops and functions; using message boxes, input boxes, and dialog boxes; creating effective code; XML-based files; ActiveX; the developer tab; content controls; add-ins; embedded macros; and security
Mastering VBA for Office 2010 prepares developers to customize all Microsoft Office 2010 applications for the unique needs of their employers.
About the Author
Richard Mansfield is the author or coauthor of more than 40 computer books, includingVisual Basic .NET Power Toolkit, Office 2003 Application Development All-in-One Desk Reference For Dummies, and Programming: A Beginner's Guide. He is the former editor of Compute! magazine. Overall, his books have sold more than half a million copies worldwide and have been translated into 12 languages.
Table of Contents
Part I: Recording Macros and Getting Started with VBA.
1 Recording and Running Macros in the Microsoft Office Applications.
2 Getting Started with the Visual Basic Editor.
3 Editing Recorded Macros.
4 Creating Code from Scratch in the Visual Basic Editor.
Part II: Learning How to Work with VBA.
5 Understanding the Essentials of VBA Syntax
6 Working with Variables, Constants, and Enumerations.
7 Using Array Variables.
8 Finding the Objects, Methods, and Properties You Need.
Part III: Making Decisions and Using Loops and Functions.
9 Using Built-In Functions.
10 Creating Your Own Functions.
11 Making Decisions in Your Code.
12 Using Loops to Repeat Actions.
Part IV: Using Message Boxes, Input Boxes, and Dialog Boxes.
13 Getting User Input with Message Boxes and Input Boxes.
14 Creating Simple Custom Dialog Boxes.
15 Creating Complex Dialog Boxes.
Part V: Creating Effective Code.
16 Building Modular Code and Using Classes.
17 Debugging Your Code and Handling Errors.
18 Building Well-Behaved Code.
19 Securing Your Code with VBA's Security Features.
Part VI: Programming the Office Applications.
20 Understanding the Word Object Model and Key Objects.
21 Working with Widely Used Objects in Word.
22 Understanding the Excel Object Model and Key Objects.
23 Working with Widely Used Objects in Excel.
24 Understanding the PowerPoint Object Model and Key Objects.
25 Working with Shapes and Running Slide Shows.
26 Understanding the Outlook Object Model and Key Objects.
27 Working with Events in Outlook.
28 Understanding the Access Object Model and Key Objects.
29 Manipulating the Data in an Access Database via VBA.
30 Accessing One Application from Another Application.
31 Programming the Office 2010 Ribbon.