香港新浪網 MySinaBlog
Emily | 22nd Feb 2009, 00:20 AM | WB & WS | (1204 Reads)

VBA 清除立即窗口内容

Sub DelInImmedate()
    Debug.Print Now
    Application.SendKeys "^g ^a {DEL}"
End Sub

API Method: http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/