|
Mastering VBA for Microsoft Office 2007
This book helps you get more done in less time by automating Office tasks. Even if you're not a programmer, you can quickly learn to write macros, automate tasks, and create custom applications for Office 2007 with Microsoft's Visual Basic[registered] for Applications (VBA) and the in-depth instruction in this comprehensive guide. You'll jump right
into the basics of recording and running macros with Office's built-in Macro Recorder, before quickly moving to the essentials of VBA syntax, using loops and functions, building effective code, and programming applications in Word, Excel[registered], PowerPoint[registered], Outlook[registered], and Access[registered]. You'll find pages of real-world examples as well as easy-to-follow techniques for topics such as accessing one application from another, programming the Ribbon, and much more. This book discusses such subjects as: understanding the essentials of VBA syntax; using the Macro Recorder in Word and Excel; creating code from scratch with the Visual Basic Editor; finding the objects, methods, and properties you need; using loops to repeat actions in your code and adding If statements for flexibility; adding more choices with message, input, and dynamic dialog boxes; and, modifying the Ribbon with XML code and callbacks Building, debugging, and securing your code. It helps you to: use VBA to customize your Office 2007 applications; transform complex operations into a single keystroke work with XML-based Files, the Ribbon, and ActiveX; add embedded macros and add-ins to improve productivity reinforce your skills with real-world examples.
Contents:
Part 1
Recording Macros and Getting Started with VBA.Chapter 1
Recording and Running Macros in the Office Applications.Chapter 2
Getting Started with the Visual Basic Editor.Chapter 3
Editing Recorded Macros.Chapter 4
Creating Code from Scratch in the Visual Basic Editor.Part 2
Learning How to Work with VBA.Chapter 5
Understanding the Essentials of VBA Syntax.Chapter 6
Working with Variables, Constants, and Enumerations.Chapter 7
Using Array Variables.Chapter 8
Finding the Objects, Methods, and Properties You Need.Part 3
Making Decisions and Using Loops and Functions.Chapter 9
Using Functions.Chapter 10
Creating Your Own Functions.Chapter 11
Making Decisions in Your Code.Chapter 12
Using Loops to Repeat Actions.Part 4
Using Message Boxes, Input Boxes, and Dialog Boxes.Chapter 13
Getting User Input with Message Boxes and Input Boxes.Chapter 14
Creating Simple Custom Dialog Boxes.Chapter 15
Creating Complex Dialog Boxes.Part 5
Creating Effective Code.Chapter 16
Building Modular Code and Using Classes.Chapter 17
Debugging Your Code and Handling Errors.Chapter 18
Building Well-Behaved Code.Chapter 19
Securing Your Code with VBA's Security Features.Part 6
Programming the Office Applications.Chapter 20
Understanding the Word Object Model and Key Objects.Chapter 21
Working with Widely Used Objects in Word.Chapter 22
Understanding the Excel Object Model and Key Objects.Chapter 23
Working with Widely Used Objects in Excel.Chapter 24
Understanding the PowerPoint Object Model and Key Objects.Chapter 25
Working with Shapes and Running Slide Shows.Chapter 26
Understanding the Outlook Object Model and Key Objects.Chapter 27
Working with Events in Outlook.Chapter 28
Understanding the Access Object Model and Key Objects.Chapter 29
Manipulating the Data in an Access Database via VBA.Chapter 30
Accessing One Application from Another Application.Glossary.
|