minhtungph
None
- Tham gia
- 18/9/13
- Bài viết
- 198
- Được thích
- 78
Code xóa Sheet mình viết như sau:
Sau khi thực hiện xong thì có thêm 1 thisworkbook tên sheet1.
Mã:
Sub DelSheet()
On Error GoTo thoat
Sheet1.Activate
Application.DisplayAlerts = False
Worksheets.Add
Sheet1.Delete
ThisWorkbook.Save
ThisWorkbook.Close
Application.DisplayAlerts = True
thoat:
End Sub