Mackeral
Board Regular
- Joined
- Mar 7, 2015
- Messages
- 249
- Office Version
- 365
- Platform
- Windows
This a test for the standard way of testing clearing the Debug window:
When I run it,
doesn't print out anything.
I have found lots of code that says it can do it, but I can't get it to work. Has something changed in VBA about how to do this.
My point here is clear and then print in the Immediate Page
to check formatting with, and it would really be nice to get the auto clear to work.
Thanks for any help. Mac
VBA Code:
Function Clear_Immediate()
For X = 1 To 10
Debug.Print X
Next
Debug.Print Now
Application.SendKeys "^g ^a {DEL}"
Debug.Print "Test"
End Function
VBA Code:
"Debug.Print "Test"
I have found lots of code that says it can do it, but I can't get it to work. Has something changed in VBA about how to do this.
My point here is clear and then print in the Immediate Page
VBA Code:
---------1---------2---------3---------4---------5---------6---------7---------8
12345678901234567890123456789012345678901234567890123456789012345678901234567890
Thanks for any help. Mac