vba中新建文件,关闭文件,锁屏,覆盖同名文件

新建文件:ctrl+n

关闭文件:

ActiveWorkbook.Save

Application.Quit

锁屏:

Application.ScreenUpdating = False

Application.ScreenUpdating = True

覆盖同名文件:

    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs Filename:= _
    Application.DisplayAlerts = True

posted @ 2012-12-29 12:51  笑看天下  阅读(1740)  评论(0编辑  收藏  举报