Excel VBA Programming For Dummies
Having Excel and just using it for standard spreadsheets is a little like getting the ultimate cable system and a 50" flat panel plasma HDTV and using it exclusively to watch Lawrence Welk reruns. With Visual Basic for Applications (VBA) programming, you can take advantage of numerous Excel options such as: creating new worksheet functions; automating tasks and operations; creating new appearances, toolbars, and menus; designing custom dialog boxes and add-ins; and much more. This guide is not for rank Excel amateurs. It's for intermediate to advanced Excel users who want to learn VBA programming (or whose bosses want them to learn VBA programming). You need to know your way around Excel before you start creating customized short cuts or systems for speeding through Excel functions. If you're an intermediate or advanced Excel user, Excel VBA For Dummies helps you take your skills (and your spreadsheets) to the next level. It includes: An introduction to the VBA languageA hands-on, guided, step-by-step walk through developing a useful VBA macro, including recording, testing, and changing it, and testing itThe essential foundation, including the Visual Basic Editor (VBE) and its components, modules, Excel object model, subroutines and functions, and the Excel macro recorderThe essential VBA language elements, including comments, variables and constants, and labelsWorking with Range objects and discovering useful Range objective properties and methodsUsing VBA and worksheet functions, including a list and examplesProgramming constructions, including the GoTo statement, the If-Then structure, Select Case, For-Next loop, Do-While loop, and Do-Until loopAutomatic procedures and Workbook events, including a table and event-handler proceduresError-handling and bug extermination techniques, and using the Excel debugging toolsCreating custom dialog boxes, also known as UserForms, with a table of the toolbox controls and their capabilities, how-to for the dialog box controls, and UserForm techniques and tricksCustomizing the Excel toolbarsUsing VBA code to modify the Excel menu systemCreating worksheet functions and working with various types of argumentsCreating Excel add-ins such as new worksheet functions you can use in formulas or new commands or utilities Author John Walkenbach is a leading authority on spreadsheet software and the author of more than 40 spreadsheet books including Excel 2003 Bible and Excel 2003 Power Programming with VBA. While this guide includes tons of examples and screenshots, Walkenbach knows there's no substitute for hands-on learning. The book is complete with: A dedicated companion Web site that includes bonus chapters plus all sample programs to save you a lot of typing and let you play around and experiment with various changesInformation to help you make the most of Excel's built-in Help system so you can find out other stuff you may need to know What are you waiting for? Sure, learning to do VBA programming takes a little effort, but it's a Very Big Accomplishment.
- Electronic book text | 408 pages
- 26 Aug 2004
- John Wiley & Sons Inc
- FOR DUMMIES
- United States
- Screen captures: 150 B&W, 0 Color
Table of contents
Introduction. Part I: Introducing VBA. Chapter 1: What Is VBA? Chapter 2: Jumping Right In. Part II: How VBA Works with Excel. Chapter 3: Introducing the Visual Basic Editor. Chapter 4: Introducing the Excel Object Model. Chapter 5: VBA Sub and Function Procedures. Chapter 6: Using the Excel Macro Recorder. Part III: Programming Concepts. Chapter 7: Essential VBA Language Elements. Chapter 8: Working with Range Objects. Chapter 9: Using VBA and Worksheet Functions. Chapter 10: Controlling Program Flow and Making Decisions. Chapter 11: Automatic Procedures and Events. Chapter 12: Error-Handling Techniques. Chapter 13: Bug Extermination Techniques. Chapter 14: VBA Programming Examples. Part IV: Developing Custom Dialog Boxes. Chapter 15: Custom Dialog Box Alternatives. Chapter 16: Custom Dialog Box Basics. Chapter 17: Using Dialog Box Controls. Chapter 18: UserForm Techniques and Tricks. Part V: Creating Custom Toolbars and Menus. Chapter 19: Customizing the Excel Toolbars. Chapter 20: When the Normal Excel Menus Aren't Good Enough. Part VI: Putting It All Together. Chapter 21: Creating Worksheet Functions - and Living to Tell about It. Chapter 22: Creating Excel Add-Ins. Chapter 23: Interacting with Other Office Applications. Part VII: The Part of Tens. Chapter 24: Ten VBA Questions (And Answers). Chapter 25: (Almost) Ten Excel Resources. Index.
About John Walkenbach
John Walkenbach is principal of J-Walk and Associates, Inc., a leading Excel expert, and proprietor of the popular spreadsheet page at www.j-walk.com. He has written more than 30 books on Excel.