Excel VBA:如何以编程方式删除Range.copy后的行军ant

我不想诉诸SendKeys“{ESC}”

application.cutcopymode = false

试试这个代码作为例子。 关键是“ Application.CutCopyMode = False

 Sub Test() Range("A1").Copy MsgBox "View Marching Ants" Range("A2").Select ActiveSheet.Paste Application.CutCopyMode = False End Sub