Sub deleteStyles() Dim s As Style On Error Resume Next For Each s In ThisWorkbook.Styles If Not s.BuiltIn Then s.Delete Next MsgBox "所有讨厌的自定义格式都删除啦!" End Sub
Sub deleteStyles()<br><br> Dim s As Style<br><br> On Error Resume Next<br><br> For Each s In ThisWorkbook.Styles<br><br> If Not s.BuiltIn Then s.Delete<br><br> Next<br><br> MsgBox "所有讨厌的自定义格式都删除啦!"<br><br> End Sub