VBA DeleteFile

1 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 5 (1 votes, average: 5.00 out of 5, rated)
Loading...

The FileSystemObject VBA DeleteFile functions deletes a specified file or files.

VBA DeleteFile Syntax

filename
The location names of file(s) to delete. You can use wildcards such as *.* to specify more than a single file matching the pattern.
force
Optional. If True only read-only files are deleted. If False any files are deleted. False is default.

VBA DeleteFile Examples

Simply the best place to learn Excel VBA