2
你能告訴我有人爲什麼只是每隔一秒鐘被刪除,但是如果我關閉worksheets.delete行比消息框中出現所有工作表名稱。刪除工作表與循環
Sub tor()
Dim wsz As Integer
wsz = Application.Worksheets.Count
For i = 2 To wsz
MsgBox Application.Worksheets(i).Name
Application.DisplayAlerts = False
Application.Worksheets(i).Delete
Next i
End Sub