Skip to main content

Excel VBA Programming For Dummies, 4th Edition

Excel VBA Programming For Dummies, 4th Edition

John Walkenbach

ISBN: 978-1-119-07739-8

Oct 2015

408 pages


Take your data analysis and Excel programming skills to new heights

In order to take Excel to the next level, you need to understand and implement the power of Visual Basic for Applications (VBA). This 4th edition of Excel VBA Programming For Dummies introduces you to a wide array of new Excel options, beginning with the most important tools and operations for the Visual Basic Editor. Inside, you'll get the lowdown on the essential elements and concepts for programming with Excel, discover techniques for handling errors and exterminating bugs, working with range objects, controlling program flow, and much more.

With the release of Microsoft Office 2016, Excel will see changes in its operating system, and this fun, hands-on guide will make it easier than ever to harness the power of Visual Basic for Applications and create custom applications and macros on the world's most popular spreadsheet tool. Packed with friendly advice on the easiest ways to develop custom dialog boxes, toolbars, and menus, you'll be creating Excel applications custom-fit to your unique needs in no time at all!

  • Provides step-by-step instructions for creating VBA macros to maximize productivity
  • Helps to increase efficiency by demonstrating how to customize your applications so they look and work the way you want
  • Fully updated for Excel 2016
  • All sample programs, VBA code, and worksheets are available at

If you're a beginning to intermediate VBA programmer looking to get up to speed on creating customized solutions with Excel applications, Excel VBA Programming For Dummies, 4th Edition makes it easier.

Introduction 1

Part I: Getting Started with Excel VBA Programming 7

Chapter 1: What Is VBA? 9

Chapter 2: Jumping Right In 19

Part II: How VBA Works with Excel 29

Chapter 3: Working in the Visual Basic Editor 31

Chapter 4: Introducing the Excel Object Model 51

Chapter 5: VBA Sub and Function Procedures 65

Chapter 6: Using the Excel Macro Recorder 79

Part III: Programming Concepts 91

Chapter 7: Essential VBA Language Elements 93

Chapter 8: Working with Range Objects 115

Chapter 9: Using VBA and Worksheet Functions 131

Chapter 10: Controlling Program Flow and Making Decisions 145

Chapter 11: Automatic Procedures and Events 165

Chapter 12: Error‐Handling Techniques 187

Chapter 13: Bug Extermination Techniques 201

Chapter 14: VBA Programming Examples 215

Part IV: Communicating with Your Users 237

Chapter 15: Simple Dialog Boxes 239

Chapter 16: UserForm Basics 257

Chapter 17: Using UserForm Controls 275

Chapter 18: UserForm Techniques and Tricks 295

Chapter 19: Accessing Your Macros through the User Interface 321

Part V: Putting It All Together 333

Chapter 20: Creating Worksheet Functions — and Living to Tell about It 335

Chapter 21: Creating Excel Add-Ins 353

Part VI: The Part of Tens 365

Chapter 22: Ten VBA Questions (and Answers) 367

Chapter 23: (Almost) Ten Excel Resources 371

Chapter 24: Ten VBA Do’s and Don’ts 375

Index 381

Chapter 07 Example Files
Chapter 09 Example Files
Chapter 10 Example Files
Chapter 11 Example Files
Chapter 12 Example Files
Chapter 14 Example Files
Chapter 15 Example Files
Chapter 16 Example Files
Chapter 17 Example Files
Chapter 18 Example Files
Chapter 19 Example Files
Chapter 20 Example Files
Chapter 21 Example Files