Kill file help needed

Sibhuskylvr

New Member
Joined
Jan 19, 2012
Messages
6
Hi, I have a file that needs deleted and I'm looking for advice on how to do just this. What I have is a file with 4 tabs of data, with formulas linking various fields on each sheet. What I would like to do is after a certain date have the file delete upon saving. What I'm not sure is the best way to do this. Would it be easier to write code that would simply erase all data in all 4 tabs and save? Or is there a way to write code that would actually delete the file from the drive it is save on? Would setting an expiry date be what I'm looking for?

thanks for any advice you have!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
It depends which way you want to do it....both methods will require VBA.
If you want to reuse the file why not simply remove ALL data and leave the formulae
Keep in mind though, that permanently deleting stuff, may have regrets.
AND
If you are working for a company, you might be getting into legal territory, by deleting company work !!!
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top