Hem / Tips & tricks
Dim typOperation As SHFILEOPSTRUCT With typOperation .wFunc = FO_DELETE .pFrom = "filename.txt" 'File to move to bin .fFlags = FOF_ALLOWUNDO End With SHFileOperation typOperation