Mastering VBA for Microsoft Office 2007

  • 16h 58m
  • Richard Mansfield
  • Sybex
  • 2008

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'sVisual Basic 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, PowerPoint, Outlook, and Access. 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.

Coverage includes:

  • 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
  • Modifying the Ribbon with XML code and callbacks
  • Building, debugging, and securing your code
  • 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

About the Author

Richard Mansfield has written hundreds of magazine articles and two columns. He began writing books full-time in 1991. Mastering VBA for Microsoft Office 2007 is his forty-second book. His recent titles include CSS Web Design for Dummies (Wiley), Office 2003 Application Development All-in-One Desk Reference For Dummies (Wiley), Visual Basic .NET Power Tools (Sybex, with Evangelos Petroutsos), The Savvy Guide to Digital Music (SAMS), and How to Do Everything with Second Life (McGraw-Hill). Overall, his books have sold more than 500,000 copies worldwide and have been translated into 12 languages.

In this Book

  • Introduction
  • Recording and Running Macros in the Microsoft Office Applications
  • Getting Started with the Visual Basic Editor
  • Editing Recorded Macros
  • Creating Code from Scratch in the Visual Basic Editor
  • Understanding the Essentials of VBA Syntax
  • Working with Variables, Constants, and Enumerations
  • Using Array Variables
  • Finding the Objects, Methods, and Properties You Need
  • Using Functions
  • Creating Your Own Functions
  • Making Decisions in Your Code
  • Using Loops to Repeat Actions
  • Getting User Input with Message Boxes and Input Boxes
  • Creating Simple Custom Dialog Boxes
  • Creating Complex Dialog Boxes
  • Building Modular Code and Using Classes
  • Debugging Your Code and Handling Errors
  • Building Well-Behaved Code
  • Securing Your Code with VBA's Security Features
  • Understanding the Word Object Model and Key Objects
  • Working with Widely Used Objects in Word
  • Understanding the Excel Object Model and Key Objects
  • Working with Widely Used Objects in Excel
  • Understanding the PowerPoint Object Model and Key Objects
  • Working with Shapes and Running Slide Shows
  • Understanding the Outlook Object Model and Key Objects
  • Working with Events in Outlook
  • Understanding the Access Object Model and Key Objects
  • Manipulating the Data in an Access Database via VBA
  • Accessing One Application from Another Application
  • Programming the Office 2007 Ribbon
SHOW MORE
FREE ACCESS