O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Visual Basic for Microsoft Excel

Video Description

In this VB for Excel training course, you will learn how to apply the VBA programming language to make your Excel spreadsheets much more powerful. Seasoned Microsoft trainer Guy Vaccaro starts you out with the basics of VB programming, and teaches you to use it to its fullest potential within Excel.
Guy extends your knowledge past editing odd Macro, directly into creating custom scripts using the VBA Programming Language. This tutorial will teach you about VBA structures, the difference between Functions and Subroutines, how to manipulate Excel Cells, interacting with the user and very importantly, error handling. Designed for the beginner, you do not have to be a programmer already to understand, and implement what you will learn in this software training course.
By the conclusion of this Visual Basic for Excel training course, you will be familiar with the VBA programming language, as it applies to Microsoft Excel. You will be able to apply this knowledge to make interactive and fully functional spreadsheets. Working files are included to let you work alongside the author as you learn VBA for Microsoft Excel in this video tutorial.

Table of Contents

  1. Getting Started
    1. What Will I Get Out Of This Course 00:03:56
    2. About The Author 00:01:16
    3. The Working Files Explained 00:03:00
    4. What Is VBA? 00:05:08
    5. Excel 2010 Security Settings And Macro Files 00:03:44
    6. The Developer Ribbon 00:01:55
  2. Macros
    1. Recording And Running A Simple Macro 00:03:52
    2. Editing An Existing Macro In The Visual Basic Editor 00:04:00
    3. The New Macro Enabled File Type 00:02:22
    4. Quick Tour Of The Visual Basic Editor 00:06:01
    5. Watch A Macro Write Your VBA 00:02:59
  3. Procedures And Functions
    1. What Is A Module? 00:03:19
    2. Creating A Sub Procedure Manually 00:03:14
    3. How To Call A Sub Procedure 00:02:50
    4. Creating A Function Procedure 00:02:51
    5. How To Call A Function 00:02:57
  4. Getting Started With VBA Programming
    1. Using Comments Within Your VBA Code 00:03:59
    2. Declaring Variables And Data Types 00:05:29
    3. The Scope Of A Variable 00:04:49
    4. The Static Declaration And Variable Expiry 00:04:53
    5. Constants Instead Of Variables 00:03:40
    6. An Intrinsic Constant 00:03:08
    7. String And Date Types Expanded 00:06:05
    8. VBA Operators 00:07:51
    9. Arrays 00:05:07
    10. Multi-Dimensional Arrays 00:03:33
    11. Dynamic Arrays 00:03:23
  5. Manipulating Excel Objects
    1. Referencing Cells Using The Range Object 00:05:29
    2. The CELLS Property 00:02:46
    3. The OFFSET Property 00:02:29
    4. The VALUE Of Ranges 00:07:44
    5. The TEXT Object Of The RANGE 00:03:01
    6. A Number Of Read Only RANGE Properties 00:09:07
    7. The FONT Property And Colors 00:08:21
    8. Formatting Numeric Values 00:03:25
    9. Add Formulas To Cells Through VBA Code 00:06:36
    10. Common METHODS Of The RANGE Object 00:11:46
  6. Working With Excel VBA Functions
    1. What Is A Function? 00:01:31
    2. Built In VBA Date Functions 00:02:30
    3. Text Manipulation With VBA Functions 00:03:53
    4. Determining File Sizes Using FILELEN 00:02:35
    5. Using Worksheet Excel Functions In VBA Code 00:08:10
    6. User Defined Functions 00:04:36
  7. Controlling Program Flow And Execution
    1. Using GOTO And Labels 00:04:25
    2. Controlling The Program Flow With IF THEN ELSE 00:04:24
    3. Multiple Criteria Plus Nested IFs 00:05:28
    4. Adding ELSEIF To Speed Up Execution 00:04:07
    5. SELECT CASE As An Alternative To IF 00:04:25
    6. The FOR NEXT Loop 00:09:25
    7. FOR NEXT With A VBA Collection 00:06:32
    8. DO WHILE Loop 00:06:56
  8. Events
    1. How To Create An Event 00:06:58
    2. WorkBook Events - Open 00:08:17
    3. Workbook Events - Closing And Saving 00:07:32
    4. Workbook Triggers - Activate And Deactivate 00:05:13
    5. Worksheet Triggers - Activate And Deactivate 00:04:15
    6. Other Useful Worksheet Triggers 00:09:44
    7. Using Application Events 00:12:07
  9. Debugging And Error Handling
    1. Error Trapping the Easy Way 00:07:38
    2. Make The VBA Ignore Errors 00:04:12
    3. Interact With The User When An Error Occurs 00:04:59
    4. Making Use Of The ERR Object 00:04:15
    5. Debugging Techniques 00:06:11
    6. Using Breakpoints To Help Debug 00:05:45
    7. Setup And Use A Watch 00:05:04
    8. Speeding Up The VBA Tips 00:12:50
  10. Interacting With Users Through Forms
    1. Using MSGBOX To Interact With Users 00:09:06
    2. Use INPUTBOX For Accepting Values From Users 00:07:20
    3. Selecting A Range With The INPUT Box 00:04:05
    4. An Introduction To UserForms 00:04:07
    5. Creating A UserForm 00:04:22
    6. Using Command Buttons 00:05:17
    7. Adding Option Buttons In A Frame 00:05:13
    8. Adding The Code That Makes The Form Work 00:07:17
    9. Calling Your UserForm And Validating Content 00:08:05
    10. UserForm Controls - The CheckBox 00:08:10
    11. UserForm Controls - ListBox And/Or Combo Box 00:10:11
    12. Images On UserForms 00:05:25
    13. Labels And Text Boxes 00:05:30
    14. Multiple Tabs On A UserForm 00:08:11
    15. Allowing The User To Highlight A Range 00:04:13
    16. Scrollbar And Spin Controls 00:08:18
    17. Controlling Tab Order And Aligning Controls 00:08:48
  11. Running And Storing VBA Code
    1. Trigger A Procedure From The Quick Access Toolbar 00:05:05
    2. Customizing The Ribbons 00:05:07
    3. Adding Buttons To Sheets 00:03:51
    4. Adding A Keyboard Shortcut Trigger 00:02:46
    5. Where To Store Your VBA Code 00:07:38
    6. Adding Code To The PERSONAL File 00:08:10
  12. Summary
    1. So What's Next? 00:02:28