Excel VBA/Macro Course! [On Sale]: https://www.teachexcel.com/vba-course...
Download the File: https://www.teachexcel.com/excel-tuto...
How to safely remove, delete, kill any Excel file, or other file, using VBA Macros in Excel.
You will learn how to build a macro that can delete files based on different conditions:
How to delete all macro-enabled files.
How to delete all Excel files.
How to delete only xlsx files.
How to delete files from a certain date or date range.
How to delete files with certain patterns or text or numbers in their name.
How to check if a file exists before trying to delete it.
This tutorial is a small version of the Kill Command tutorial in my full VBA course.
To build powerful VBA projects or further customize this one, checkout my full VBA Course: https://www.teachexcel.com/vba-course...
Resources:
Kill Command for VBA (Microsoft Link): https://docs.microsoft.com/en-us/offi...
Chapters:
00:00 Intro
00:36 VBA Course Sample
01:33 One Line Kill
02:40 Case Insensitive Delete
03:45 Delete Files that Start with Certain Text
04:41 Delete Files from Certain Dates
05:48 Wild Cards?
07:21 Delete Macro-Enabled Files
08:26 Delete XLSX Files
08:38 Delete Text Files
08:45 DO NOT DO THIS!!!
10:16 Delete Entire Directory
11:05 Safe Delete Files (File Exists Check)
#msexcel #tutorial #vba #exceltips #freetutorial #exceltips #excel
Watch video Kill Command in Excel - Is it Dangerous? online without registration, duration hours minute second in high quality. This video was added by user TeachExcel 30 August 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,436 once and liked it 115 people.