sub 删除多余工作表()

Dim i As Integer

Application.DisplayAlerts = False

For i = Worksheets.Count To 1 step -1

    If i >7 Then

    ThisWorkbook.Worksheets(i).Delete

    End If

    Next

Application.DisplayAlerts = True

End Sub

相关文章:

  • 2021-11-02
  • 2021-04-29
  • 2021-10-07
  • 2021-12-20
  • 2021-12-15
  • 2022-12-23
  • 2021-10-01
  • 2021-06-13
猜你喜欢
  • 2022-12-23
  • 2022-01-12
  • 2022-01-05
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-09
相关资源
相似解决方案