VBA For Dummies


VBA helps you put your computer in its place

Write programs that automate tasks and make Office 2007 work better for you

If your computer is becoming your boss instead of your servant, start using VBA to tell it what to do! Here's the latest on the VBA IDE and program containers, debugging and controlling ...

See more details below
Paperback (Revised Edition)
BN.com price
(Save 17%)$29.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (22) from $1.99   
  • New (11) from $4.97   
  • Used (11) from $1.99   
Sending request ...


VBA helps you put your computer in its place

Write programs that automate tasks and make Office 2007 work better for you

If your computer is becoming your boss instead of your servant, start using VBA to tell it what to do! Here's the latest on the VBA IDE and program containers, debugging and controlling your programs, working with multiple applications using a single program, and the most exciting stuff — programming for all the Office 2007 applications.

Discover how to

  • Customize an application's interface
  • Quick-launch a VBA program
  • Store and modify information
  • Use VBA with the Ribbon
  • Understand object-oriented programming
  • Avoid runtime errors
Read More Show Less

Product Details

  • ISBN-13: 9780470046500
  • Publisher: Wiley
  • Publication date: 1/17/2007
  • Series: For Dummies Series
  • Edition description: Revised Edition
  • Edition number: 5
  • Pages: 484
  • Sales rank: 362,290
  • Product dimensions: 7.26 (w) x 9.25 (h) x 1.06 (d)

Meet the Author

John Mueller is a freelance author and technical editor. He has writing in his blood, having produced 71 books and over 300 articles to date. The topics range from networking to artificial intelligence and from database management to heads-down programming. Some of his current books include a Windows power optimization book, a book on .NET security, and books on Amazon Web Services, Google Web Services, and eBay Web Services. His technical editing skills have helped more than 50 authors refine the content of their manuscripts. John has provided technical editing services to both Data Based Advisor and Coast Compute magazines. He has also contributed articles to magazines like DevSource, InformIT, Informant, DevX, SQL Server Professional, Visual C++ Developer, Hardcore Visual Basic, asp.netPRO, Software Test & Performance, and Visual Basic Developer.

Read More Show Less

Table of Contents

Introduction 1

Part I: An Overview of VBA 7

Chapter 1: Getting to Know VBA 9

Chapter 2: Your First VBA Program 33

Part II: Learning the Ropes 49

Chapter 3: Writing Structured VBA Programs 51

Chapter 4: Storing and Modifying Information 79

Chapter 5: Creating Structured Programs 111

Chapter 6: Trapping Errors and Squashing Bugs 133

Chapter 7: Interacting with the User 155

Part III: Expanding Your VBA Horizons 179

Chapter 8: Object-Oriented Programming 181

Chapter 9: Working with Arrays and Collections 205

Chapter 10: Working with Disk Files 229

Chapter 11: VBA Programming with XML 239

Part IV: Programming for Applications 255

Chapter 12: VBA Programming in Office 257

Chapter 13: VBA Programming in Word 277

Chapter 14: VBA Programming in Excel 305

Chapter 15: VBA Programming in Access 329

Chapter 16: Applications that Work Together 355

Part V: The Part of Tens 379

Chapter 17: Ten Kinds of VBA Resources 381

Chapter 18: Ten Ways to Update Your Old VBA Code Quickly 389

On the Web

Bonus Chapter 1: VBA Programming in FrontPage BC1

Bonus Chapter 2: VBA Programming in Visio BC25

Bonus Chapter 3: Ten Really Cool Things You Can Do with VBA BC43

Index 397

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)