📜  excel vba 删除工作表(如果存在) - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:47.275000             🧑  作者: Mango

代码示例1
For Each ws In Worksheets
    If ws.Name = "asdf" Then
        Application.DisplayAlerts = False
        Sheets("asdf").Delete
        Application.DisplayAlerts = True
    End If
Next

Sheets.Add(After:=Sheets(Sheets.count)).Name = "asdf"