How can I see Debug.Print() statements?

0

I tried to analyze a macro by adding debug output to it. The shortest test code would be

Sub Macro1()
    Debug.Print ("Hello World")
End Sub

I have tried showing additional Windows in Word, but I could not find a "Debug output" or even "Output" window like I know from Visual Studio.

I also tried running SysInternals DebugView, but the output does not appear there.

How can I see the output of such a Debug.Print statement?

Thomas Weller

Posted 2016-09-14T08:08:55.977

Reputation: 4 102

Answers

2

The output appears in the "Immediate" window. It can be shown in Word 2010 with Ctrl+G or from the menu View / Immediate Window.

Immediate window

Thomas Weller

Posted 2016-09-14T08:08:55.977

Reputation: 4 102