LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Som Som is offline
external usenet poster
 
Posts: 26
Default Auto deletion of excel file after a certain date - expiry

after a certain date(date will provided by me) a password protected MS
excel file or it's data will deleted permanently.

(even if the client user copies (n number of copies) the file to their own
PCs also
from our PC).

I require this option for licence issue... Can u please help me?

can u give me a code which will delete the excel file permanently if
somebody tries to open the file after the specified date ?

how to protect the code in the MS VB editor for macro , so that nobody can
see the code before expiry date / deletion date.

at present my code is

my code to close the file (not deletion)

==============================================+


Private Sub Workbook_Open()

If DateDiff("d", "10/Mar/2009", Date) 1 Then

Application.ActiveWorkbook.Close

End If

End Sub

==================================================

it is failing again in another PC....

because by default in my client company , the macro level set very high...
so it is
not running in all PCs

msg comnig -- " Macros are disabled because the security level is set very
high. To run the macros , change the security level to a lower setting and
verify the macros are signed & trusted"

, now what to do ??

i cann't change all PC s macro security setting of client location....

so i have to do the job keeping in my mind that " macro security will be
high "

now pls advise


is there any troubleshoot of the above situation ?

-------------------------------------------------------------


atleast , if file gets deleted in 1st shot , there will not be any option of
R & D by the client.


so I think , deletion code can serve the purpose.

pls help me


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Expiry of MS Excel file Som Excel Discussion (Misc queries) 15 March 14th 09 03:27 AM
How can I activate a macro of auto deletion with respect to date G.Shankar New Users to Excel 1 May 31st 08 01:30 PM
Prevent deletion of Excel file JAMES T. Excel Discussion (Misc queries) 1 September 18th 05 06:51 PM
Excel file deletion dstones Excel Discussion (Misc queries) 0 July 19th 05 04:01 AM
how do i set up an expiry date in an Excel worksheet AR Voice Excel Worksheet Functions 2 June 6th 05 10:22 PM


All times are GMT +1. The time now is 04:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"