Created
February 27, 2018 01:47
-
-
Save DuongAQ/aac26c5a3926f8391eaa54e64598dceb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Remove_File() 'Xóa file trong folder bằng VBA | |
'Tạo thông báo xác nhận xóa | |
Dim Msg as String | |
Msg=MsgBox("Delete Folder", vbYesNo) | |
'Thực hiện việc xóa | |
If Msg=vbYes Then Kill "C:\Users\HYMC\Downloads\Test\*.*" | |
'C:\Users\HYMC\Downloads\Test\ là đường dẫn tới thư mục cần xóa | |
'*.* là tất cả các file cần xóa (có bao gồm dấu chấm đuôi file) | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment