Using the Print method, this example displays the value of the variable MyVar
in the Immediate window. Note that the Print method only applies to objects that can display text.
Dim MyVar
MyVar = "Come see me in the Immediate pane."
Debug.Print MyVar