Closed Thread
Results 1 to 7 of 7

How Creat Self Destruct Excel file

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    How Creat Self Destruct Excel file

    Hi,


    Can anyone please help me to create Self destruct file in excel based on time / (Ex: 10 minutes / 30 minutes)

    Criteria: While any member opening the excel file , VBA code in the file should automatically run based on mentioned time in VBA Code and file automatically should be destructed.


    Regards
    SP.Ajay Pal
    Last edited by ajaypal.sp; 11-10-2015 at 11:28 AM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: How Creat Self Destruct Excel file

    What do you mean "self-destruct"?
    What is to prevent the user from copying the data from your book and putting it in another?

    Excel is not a secure platform, its security is good against compliant thumb-fingered users, but not against malevolent users.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    Re: How Creat Self Destruct Excel file

    HI

    Thank you for reply.

    What is the use of "kill" function in VBA and How to use? I think, with the use of "kill" function we can create self destruct program in excel.

    Regards
    SP.Ajay Pal

  4. #4
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: How Creat Self Destruct Excel file

    You would have to have the macro that kills in your personal workbook. The issue is, you can't call a macro to kill your workbook, if the code that would kill it is in said workbook. Alternatively, you could create a new instance of excel, and use that instance to kill the file. You could have a workbook saved on your computer that would simply perform the function of deleting the file. Then it's as simple as calling the macro in that workbook, and having the macro save and close (so you don't have prompts) the workbook you wish to kill.
    Want to show appreciation for the help you received from a member? Give them reps by clicking the bottom left of their post!

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: How Creat Self Destruct Excel file

    To kill the workbook 10 minutes after opening ...

    In ThisWorkbook:

    Please Login or Register  to view this content.
    In a standard code module:

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: How Creat Self Destruct Excel file

    I'm wondering what the purpose of this is?

    If you are killing a file to protect it from bad people, consider that the writer of the code had to ask about the technique on a public internet forum. That means that the bad people know more Excel and are more experienced than the designer of the security system.

    If this is to protect data from bad people, it won't work. Bad people are good programmers, are very clever. Excel is not a secure platform.

    If this is to create a "trial version" in a commercial setting, there are other ways to do that. (These ways can be defeated, but if your customers aren't honest, they'll find other ways to rip you off.)

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: How Creat Self Destruct Excel file

    I agree with everything Mike said.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Creat text file from range
    By DonG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-20-2015, 04:53 PM
  2. Excel auto delete cells or self destruct
    By ryan4646 in forum Excel General
    Replies: 11
    Last Post: 12-29-2013, 03:07 PM
  3. How do I creat a uploading Macro in Excel?
    By gtg653t in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2008, 08:35 AM
  4. [SOLVED] How to creat summery file form many xl files?
    By Brian in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2006, 08:50 AM
  5. plz help in to creat formula of excel
    By khushee in forum Excel General
    Replies: 5
    Last Post: 12-04-2005, 03:25 PM
  6. macro for self destruct
    By jwduthler in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2005, 11:05 AM
  7. [SOLVED] creat a macro to look for a file
    By Kelly****** in forum Excel General
    Replies: 1
    Last Post: 01-02-2005, 06:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1