作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
开始出现 Excel 灾难性故障错误
在确定打开调试窗口时,每次自动创建新工作表,这是空的和奇怪的结构
If I want something to do 出现
那么如何删除这些工作表呢?或修复该错误?
没有启动后台进程,以 xlsm 和 xlsb 格式存储的文件执行相同的操作。工作簿和工作表不 protected 。
最佳答案
看起来文件已损坏。这个问题不太可能从头开始很容易地重现。
无论如何,您可以编写一个 vba 宏脚本以根据其名称删除表格或不删除您要保留的表格。
sheetnametodelete= "sheetname"
With Application.Workbooks(ThisWorkbook.Name())
.Unprotect (yourpassword) ' required if protection is set
Dim wks As Worksheet
Set wks = .Sheets(sheetnametodelete)
If (Not wks Is Nothing) Then ' also check if wks belong to the defined blacklist
wks.Delete
End If
.Protect (yourpassword) ' required if protection is set
End With
关于Excel 2016 Office 365 灾难性故障,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57805429/
我是一名优秀的程序员,十分优秀!