相关疑难解决方法(0)

我应该在退出子程序之前重新打开.CutCopyMode吗?

为了优化我的代码,我关闭了几个Application Object成员 属性; 一个特别是.CutCopyMode属性.

Sub MyProcedure()
    With Application
        .ScreenUpdating = False
        .EnableEvents = False
        .CutCopyMode = False
    End With

    ' lots of code here
Run Code Online (Sandbox Code Playgroud)

在我的子查询完成之前,我应该再与其他人一起重新打开.CutCopyMode(例如True)吗?

    ' lots of code here

    With Application
        .ScreenUpdating = True
        .EnableEvents = True
        .CutCopyMode = True     '<~~ ???
    End With
End Sub
Run Code Online (Sandbox Code Playgroud)

excel vba excel-vba excel-2010

8
推荐指数
1
解决办法
4533
查看次数

标签 统计

excel ×1

excel-2010 ×1

excel-vba ×1

vba ×1