JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,553
- Office Version
- 365
- Platform
- Windows
I found this code that is supposed to clear the Immedite window.
If I type "ClearImmediateWindow" in the Immediate window, it works. But if I call it from a UDF, it does nothing.
VBA Code:
Sub ClearImmediateWindow()
Application.SendKeys "^g", True
Application.SendKeys "a", True
Application.SendKeys "{DEL}", True
End Sub
If I type "ClearImmediateWindow" in the Immediate window, it works. But if I call it from a UDF, it does nothing.