Nhờ các anh chị giúp dùm khi xoá nhiều hơn 8 sheet thấy báo lỗi 'runtime eror 9'.
Xin cảm ơn
Xin cảm ơn
PHP:
Application.DisplayAlerts = False
Sheetcount = Sheets.Count
MsgBox ("Xoa tat ca cac sheet truoc, tru sheet cuoi cung : " & Sheetcount)
For i = 1 To Sheetcount - 1
Sheets(i).Delete
Next