
Controlling program flow through repetition using variations of the For...Next loop.
Controlling program flow through repetition using variations of the For...Each loop.
Understanding variable scope: local, module and global, and when each should be used. How to declare variables of different scope.
Trapping runtime errors in your code, and providing simple error handlers to report the error and gracefully exit.
This short project combines and reinforces some of the skills and techniques introduced so far in the course: looping, simple and object type variables, defining and passing parameters, and using important Range properties such as CurrentRegion and Resize.
A look at additional techniques you can use to launch macros, by attaching them to objects on the worksheet or modifying the Quick Access Toolbar.
Modifying the Ribbon by adding tabs and groups; attaching macros to the Ribbon.
Hooking into Workbook and Worksheet events to run code automatically in response to user actions.
Hooking into Application events to run code automatically in response to keyboard actions and system time.
This short project combines and reinforces some of the skills and techniques introduced in this section, specifically using a Workbook event handler to modify Excel's save/close behavior.
Exploring additional features of MsgBox, including modifying visual characteristics such as title bar, icon and buttons. How to test for user choices, OK/Cancel, Yes/No, etc...
Enhancing the Excel user interface by adding ActiveX controls to the worksheet, without using any code.
Enhancing the Excel user interface by adding ActiveX controls to the worksheet, with code.
Presenting and gathering information through custom user forms: initializing controls, displaying and disposing of the form.
A simple example of cross-application programming: reaching into Word from Excel to insert a chart and create a series of documents.
This is an introductory course on how to program Excel using VBA macros. You will learn to automate and extend the Excel environment to supercharge your Excel models, automate routine tasks, customize your user interface, and manage large quantities of data. This course is based on the instructor's semester-long college courses which have produced thousands of graduates in the fields of business, finance, health care and public policy. Designed for busy professionals who need to take their Excel abilities to the next level, you will not waste time on topics which you are unlikely to use, and you will receive extra attention to the often confusing or overlooked details that will make the most difference to your ultimate understanding. Over 8 hours of instruction!