Clears Immediate window : Application SendKeys « Application « VBA / Excel / Access / Word






Clears Immediate window

 
Sub SendKeyActionToImmediateWindow()
    Application.VBE.Windows.Item("Immediate").SetFocus
    Application.SendKeys "^a"
    Application.SendKeys "{Del}"
End Sub

 








Related examples in the same category

1.Sent key stroke with Application.SendKeys