Start learning with our library of video tutorials taught by experts. Get started

Up and Running with VBA in Excel
Illustration by Richard Downs

Up and Running with VBA in Excel

with Curt Frye

Video: Welcome

- Hi, I'm Curt Frye. Welcome to up and running with VBA in Excel. If you need to manipulate data and want to go beyond what the Macros feature offers, then this course is for you. I'll show you how to create custom macros and enhance the power of Microsoft Excel. I'll begin by introducing the visual basic for applications programming language. Then, using that language as a base, I'll demonstrate how to create sub routines and functions to hold your code. I'll also show you how to discover more information about the Excel programming environment from within the visual basic editor.
Expand all | Collapse all
  1. 1m 35s
    1. Welcome
      1m 17s
    2. Using the exercise files
      18s
  2. 39m 48s
    1. Introducing object-oriented programming
      1m 53s
    2. Examining the Excel object model
      4m 32s
    3. Working in the Visual Basic editor
      4m 34s
    4. Setting VBA project properties
      2m 33s
    5. Creating, exporting, and deleting code modules
      6m 48s
    6. Creating a subroutine or function
      6m 2s
    7. Controlling procedure scope and visibility
      3m 12s
    8. Adding comments to the code
      3m 43s
    9. Running a VBA routine
      3m 50s
    10. Adding code to a recorded macro
      2m 41s
  3. 34m 38s
    1. Introducing Excel VBA data types
      6m 7s
    2. Declaring variables and requiring declaration before use
      4m 22s
    3. Managing variable scope
      3m 33s
    4. Defining static variables and constants
      4m 52s
    5. Creating a calculation using mathematical operators
      3m 33s
    6. Defining arrays
      6m 1s
    7. Defining and using object variables
      2m 58s
    8. Streamlining code references using With...End With statements
      3m 12s
  4. 20m 43s
    1. Repeating a task using a For...Next loop
      2m 35s
    2. Stepping through all items of a collection using a For...Each loop
      3m 11s
    3. Repeating a task with a Do loop
      5m 24s
    4. Performing a task when conditions are met using If...Then
      7m 40s
    5. Selecting which action to take using a Case statement
      1m 53s
  5. 19m 53s
    1. Managing errors using On Error statements
      5m 2s
    2. Stepping through a subroutine or function
      5m 23s
    3. Setting breakpoints in the code
      2m 36s
    4. Verifying output using the Immediate window
      3m 52s
    5. Watching a value in a routine
      3m 0s
  6. 32m 51s
    1. Writing a value to a cell
      3m 40s
    2. Cutting, copying, and pasting cell data
      5m 1s
    3. Finding values in cells
      4m 19s
    4. Referring to cells using the Offset function
      2m 57s
    5. Concatenating text strings
      4m 16s
    6. Returning part of a string
      2m 55s
    7. Managing worksheets with VBA
      5m 52s
    8. Managing workbooks with VBA
      3m 51s
  7. 12m 7s
    1. Turning off screen updating within a macro
      2m 26s
    2. Using worksheet functions in a macro
      2m 26s
    3. Acquiring values using an input box or message box
      5m 5s
    4. Calling a subroutine from another subroutine
      2m 10s
  8. 12m 29s
    1. Running a procedure when you open, close, or save a workbook
      4m 21s
    2. Running a procedure when a cell range changes
      4m 35s
    3. Triggering a procedure using a specific key sequence
      3m 33s
  9. 6m 13s
    1. Applying techniques in a Capstone project
      6m 13s
  10. 13s
    1. Goodbye
      13s

Watch this entire course now —plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Watch the Online Video Course Up and Running with VBA in Excel
3h 0m Advanced Jun 23, 2010

Viewers: in countries Watching now:

In Up and Running with VBA in Excel, Excel and VBA expert Curt Frye introduces object-oriented programming and shows how to automate routine tasks and provide custom functionality to enhance Excel performance and efficiency. This course introduces the Visual Basic for Applications programming language, covers creating subroutines and functions to hold code, and provides a solid grounding in the Excel 2007 object model. Programming techniques are demonstrated through real-world examples. Exercise files accompany the course.

Topics include:
  • Working in the Visual Basic Editor
  • Adding code to a macro
  • Creating, exporting, and deleting code modules
  • Declaring and using variables
  • Managing variable scope
  • Defining arrays
  • Managing workbooks and worksheets with VBA
  • Repeating tasks with loops
  • Debugging VBA code
  • Cutting, copying, and pasting cell data
  • Running and triggering event procedures
Subjects:
Business Productivity Developer Programming Languages
Software:
Excel Visual Basic for Applications
Author:
Curt Frye

Welcome

- Hi, I'm Curt Frye. Welcome to up and running with VBA in Excel. If you need to manipulate data and want to go beyond what the Macros feature offers, then this course is for you. I'll show you how to create custom macros and enhance the power of Microsoft Excel. I'll begin by introducing the visual basic for applications programming language. Then, using that language as a base, I'll demonstrate how to create sub routines and functions to hold your code. I'll also show you how to discover more information about the Excel programming environment from within the visual basic editor.

We'll enhance your ability to build custom solutions by showing you how to declare variables and assign values to them, manipulate workbooks, worksheets, and cell ranges using object variables, and write efficient code using shortcuts built into VBA. I'll show you how to control which statements Excel runs by using program logic, run procedures when specific events occur and analyze your code to discover and fix any errors that might occur.

In short, I'll show you how to build custom solutions using Excel's robust programming capabilities. Let's get started with Up and Running with VBA in Excel.

There are currently no FAQs about Up and Running with VBA in Excel.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Up and Running with VBA in Excel.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.