Use the Immediate Window

   

The Immediate window displays information resulting from debugging statements in your code or from commands typed directly into the window.

To display the Immediate window

To execute code in the Immediate window

  1. Type a line of code in the Immediate window.

  2. Press ENTER to execute the statement.

Use the Immediate window to:

If you need help on syntax for functions, statements, properties, or methods while working in the Immediate window, select the keyword, the property name, or the method name, and press F1.