From the course: Excel: Learning VBA
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Verify output using the Immediate window - Microsoft Excel Tutorial
From the course: Excel: Learning VBA
Verify output using the Immediate window
- [Instructor] So far in this course, I have verified my code's output using message boxes. Message boxes are fine, but they require that the user, probably you, click a button to dismiss them and continue running the program. If you prefer to bypass message boxes and still get the feedback on your code, you can use the Immediate Window. The Immediate Window is a panel that appears at the bottom of the Visual Basic Editor. In this movie, I will demonstrate how to use it. My sample file is 04_04_immediate, and you can find it in the Chapter 4 folder of the Exercise Files collection. I have some data in this workbook so that the subroutine we work with will have something to display. And I've got the value of tax owed to the State of Virginia, specifically to the city of Mt. Crawford. To look at the VBA code that operates on this data, I'll press ALT F11 to move to the Visual Basic Editor. And I have a subroutine called…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Manage errors using On Error statements6m 8s
-
(Locked)
Step through a subroutine or function6m 2s
-
(Locked)
Set breakpoints in your code3m 47s
-
(Locked)
Verify output using the Immediate window5m 10s
-
(Locked)
Watch a value in a routine4m 10s
-
(Locked)
Challenge: Debug your VBA code3m 38s
-
(Locked)
Solution: Debug your VBA code4m 1s
-
(Locked)
-
-
-
-