Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Print Command

Evaluates an expression, or displays specified text.

Debug.Print text

text

Required. The expression to evaluate or the text to display.

You can use the question mark (?) as an alias for this command. So, for example, the command

>Debug.Print expA

can also be written

>? expA

Both versions of this command will return the current value of the expression expA.

>Debug.Print varA
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft