Home > Software engineering > Who is a great god help write a macro code Excel specified time automatically destroyed, changing th
Who is a great god help write a macro code Excel specified time automatically destroyed, changing th
Time:11-15
Who can help to write a macro code, want to Excel automatically destroy to the specified date, no hint! To change the system time will not be affected
CodePudding user response:
What you said is "destroyed" delete files? Normally only implement "arrived after the specified date/time no longer perform operations", it is impossible to "delete themselves", In the "run" document, it is in the "open", cannot be deleted files at this time, If you want to "change the system time is not affected," then you can judge the current time, through access to the network time Judged not to "local time", which requires to networking,
But to "self-destruct" can have a workaround, is: When to "self-destruct", through the code, to construct a bat file (or VBS, etc.) and implementation; To shut itself down and then immediately ", "so that" just be performed "bat or VBS code, you can delete" yourself ",
CodePudding user response:
"Want to Excel to the specified date automatically destroyed" is expired after opens automatically deleted yourself? Or any other meaning?
CodePudding user response:
Thinking is the server gets the current time from the time, and then through the VBA macro instruction will automatically delete all form or into a null value is ok, but disable the macro was not right,
CodePudding user response:
Disable macros you are helpless, or save in XLSX file, or the form content is copied into the new excel file, or external reference file data... Let your macro failure way more,