Friday, August 5, 2016

Immediate Window in VBA Environment

The Microsoft Visual Basic for Applications window displays your VBA environment in Excel 2013:

Microsoft Excel
Next, let's analyze the Immediate window in the VBA environment.
Microsoft Excel
In Excel 2013, the Immediate window is usually found below the Code window. It is an essential element of the debugger found within the VBA environment. It lets you:
  • Type code and press ENTER to view the results of the code.
  • When in debug mode, it lets you view the value of a variable in its current state. This will be discussed in the tutorial on Debugging VBA Code.
If the Immediate window is not visible when you open the Microsoft Visual Basic for Applications window, you can make it visible by selecting Immediate Window under the Viewmenu.
Microsoft Excel