香港新浪網 MySinaBlog
« 上一篇 | 下一篇 »
Emily | 22nd Feb 2009, 00:20 AM | WB & WS | (1213 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/