Print command
Evaluates an expression or displays specified text.
Windows Command Prompt
>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
Windows Command Prompt
>Debug.Print expA
can also be written as
Windows Command Prompt
? expA
Both versions of this command return the current value of the expression expA
.
Windows Command Prompt
>Debug.Print DateTime.Now.Day