Creating an MS Excel file which deletes itself when a certain time or date is reached
问题 Regarding MS Excel, I want to know how to create an Excel file that is deleted from the computer when a certain date or time is reached. Is it possible? If it is, please tell me how it can be done? 回答1: You can call function DoSomething at a certain time in the future or by specifying the time interval by calling Activate_timer , but I don't think you can delete workbook direct from VBA. You can try to call in DoSomething function some batch file which closes the book first and then remove it