'this workbook will self destruct!'

beccy

Board Regular
Joined
Jul 22, 2004
Messages
116
i am sending a price guide in excel format to customers and I would not like them to reuse or copy the data...

is there a way of setting something that will prevent people copying it and delete the contents of the sheet after a certain period of time?

any thoughts would be appreciated!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
could i run a macro on start up that would permanently delete the data after a certain amount of time?
 
Upvote 0
You could use some like this, change date as required. Put this code in the workbook open event. This will delete the entire workbook.


Code:
 If Date < #8/30/2005# Then Exit Sub
        With ThisWorkbook
            .Saved = True
            .ChangeFileAccess xlReadOnly
            Kill .FullName
            .Close False
        End With
 
Upvote 0
The easiest way to keep them from copying the data is to protect the sheet with a password. If you protect a document in Excel 2003, it gives you an option of things people can and cannot do. Simply clear the check boxes saying 'Select Locked Cells' and 'Select Unlocked Cells'.

Then no one will be able to copy the contents of the sheet to their clipboard without cracking the password (which is unfortunately very easy to do).

A really cheap, lazy, and possibly less than sufficient way to make it "self destruct" would be to apply conditional formating to each cell.

Select all the cells you want to 'destroy' and apply a conditional format, with a formula that says something like:

= today() > mm/dd/yy

The date of course being the last date you want the file to be readable.

Then set the format to something that makes the data unreadable (black background or white text... change the font to wingdings... whatever... get creative).

You could use the same idea, combined with an if statement and in each cell, change the current value to:

= if ( today()>mm/dd/yy , " " , Normal Value for cell )


Neither of these methods is very sophisticated and they don't completely destroy the data. It probably wouldn't be very difficult to destroy the data using a macro of some sort, but then you would have to find a way to prevent people from opening the file if they disable the macros.

You might want to look into using a more secure document, such as a pdf if you really don't want them to copy the data, but then it's going to be a lot harder to make it self destruct.
 
Upvote 0
Instead of dealing with all of that, have you considered the possibility of just sending them the file in PDF format? Then you don't need to worry about enabling macros and all the other stuff.
 
Upvote 0
yes i have thought of that but they upload the price book into their system and use the prices. i just need to make sure it cannot be reused
 
Upvote 0
How about having a macro that actually enables the spreadsheet to run at the start. Maybe it will place a few values into cells that were previously empty.
This would mean that if the macros were disabled then the sheet would be pretty much useless.
 
Upvote 0

Forum statistics

Threads
1,223,532
Messages
6,172,878
Members
452,486
Latest member
standw01

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