Where does Debug.Print
output messages?
相关问题
- Pass custom debug information to Microsoft bot fra
- Error handling only works once
- How do I identify what code is generating “ '&
- Excel formula in VBA code
- Converting byte array output into Blob corrupts fi
相关文章
- How do I get to see DbgPrint output from my kernel
- Directly signing an Office Word document using XML
- Unregister a XLL in Excel (VBA)
- Advanced profiling is unavailable for the selected
- Can't Inspect Variables When Debugging .NET As
- What is the difference between glibc's MALLOC_
- numeric up down control in vba
- Embedding a program's source code into its bin
Where do you want to see the output?
Messages being output via
Debug.Print
will be displayed in the immediate window which you can open by pressing Ctrl+G.You can also Activate the so called Immediate Window by clicking View -> Immediate Window on the VBE toolbar
Debug.Print
outputs to the "Immediate" window.Also, you can simply type
?
and then a statement directly into the immediate window (and then press Enter) and have the output appear right below, like this:This can be very handy to quickly output the property of an object...
? myWidget.name
...to set the property of an object...
myWidget.name = "thingy"
...or to even execute a function or line of code, while in debugging mode:
Sheet1.MyFunction()