Excel VBA Programming For Dummies

Front Cover
John Wiley & Sons, Feb 6, 2013 - Computers - 408 pages

Take control of your spreadsheets and use VBA to create your own custom Excel applications

Author and Excel guru John Walkenbach, known to his devoted fans as "Mr. Spreadsheet," guides you through taking your Excel skills to the next level by creating your own customized spreadsheet solutions using Visual Basic for Applications (VBA). This updated edition of this bestselling book shows you how to use VBA, write macros, customize your Excel apps to look and work the way you want, avoid errors, and more.

  • Introduces you to a wide array of new Excel 2013 options, beginning with the most important tools and operations for the Visual Basic Editor
  • Provides an overview of the essential elements and concepts for programming with Excel, including using VBA to customize your applications and automate functions
  • Shares techniques for handling errors, debugging, working with range objects, controlling flow, and much more
  • Zeroes in on creating custom dialog boxes, toolbars, and menus

Add a personal touch to your spreadsheets and present your data the way you want with Excel VBA Programming For Dummies, 3rd Edition.

 

Contents

Introduction Is This the Right Book? So You Want to Be a Programmer
91
Programming Concepts Chapter 7 Essential VBA Language Elements
93
Introduction
94
31
107
Working with Range Objects
115
Using VBA and Worksheet
129
Using Worksheet Functions in VBA
136
Controlling Program Flow and Making Decisions
143
Using multiple sets of OptionButtons
290
Using a UserForm as a progress indicator
299
A Dialog Box Checklist
305
Accessing Your Macros through the User Interface
307
and Living to Tell about
329
Putting It All Together
330
A function with a range argument
336
Using the Insert Function Dialog
344

Automatic Procedures and Events
163
Events Not Associated with Objects
179
ErrorHandling Techniques
183
Bug Extermination Techniques
194
Bug Extermination Techniques
197
Using the VBA debugger
202
VBA Programming
209
Looping through a range efficiently
214
VBA Speed Tips
225
Communicating with Your Users
232
The InputBox Function
240
The GetSaveAsFilename Method
246
UserForm Basics
249
Using UserForm Controls
265
UserForm Techniques and Tricks
283
The Part of Tens Chapter 22 Ten VBA Questions and Answers 361
361
What Is VBA?
365
An Excursion into Versions 18
372
Almost Ten Excel Resources
375
Index
383
Creating Worksheet Functions and Living to Tell about It 329 Chapter 21 Creating Excel AddIns
3
181
7
67
8
91
16
How VBA Works with Excel
33
Working with a Code Window
39
Entering code directly Using the macro recorder Copying VBA code Customizing the VBA Environment
47
Introducing the Excel Object Model
53
Copyright

Other editions - View all

Common terms and phrases

About the author (2013)

John Walkenbach, known to his fans as Mr. Spreadsheet, has written some 50 books and around 300 articles on computer topics, predominantly Excel. He created the award-winning Power Utility Pak and several other versatile Excel add-ons. John maintains the Spreadsheet Page at http://spreadsheetpage.com.

Bibliographic information