如何删除工作表名称类似的工作表
Left(SheetExists.Name, 16) = "Mgt Report as at"
尝试:
Sheets(Left(SheetExists.Name, 16) = "Mgt Report as at").Delete
最佳答案
像这样(未测试):
For Each s in ActiveWorkbook.Sheets
If Left(s.Name, 16) = "Mgt Report as at" Then
s.Delete
End If
Next s
关于vba - 删除名称类似的工作表,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12104524/