Chapter 2

VBA Programming

In This Chapter

arrow Getting familiar with Visual Basic for Applications and the Visual Basic Editor

arrow Editing a macro in the Visual Basic Editor

arrow Creating a dialog box that prompts you for input for your macro

arrow Writing new macros in the Visual Basic Editor

arrow Using VBA to create user-defined functions

arrow Using your user-defined functions in your spreadsheets

arrow Saving user-defined functions as Excel add-ins

The subject of this chapter is Visual Basic for Applications (usually known simply as VBA), which is the official programming language of Excel, and how you can use it to edit the macros that you record (as described in Book VIII, Chapter 1) as well as to write new macros. The key to editing and writing macros in VBA is its editing program, the Visual Basic Editor (often ...

Get Excel 2016 All-in-One For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.