+ Reply to Thread
Results 1 to 4 of 4

Can you disable an excel spreadsheet after a period of time?

  1. #1
    Registered User
    Join Date
    11-12-2008
    Location
    St Paul, Minnesota
    Posts
    34

    Can you disable an excel spreadsheet after a period of time?

    Hi everyone. This is my first post here, and I hope to learn a lot on this forum!!
    My name is Chad, and this project I am working on is my first big project in excel for business.

    I am currently taking MS Office 2007 in college, and hope this will aid in my project.

    I am currently working on a sales script, for telemarketers, the script is to be sold with a liscence for a period of one year.

    My question, is there any way to have the customer need to enter in a liscene number before the script will work the first time, and automatically cease working after one year??? (Needed to purchase a new, updated, registered copy?)

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    One way to do it:

    Force the user to enable macros (a topic unto itself, and amply covered here; search for it).

    Add a worksheet that is xlVeryHidden (which means it can only be unhdden if you have access to the VBE). Store the expiration date someplace on that sheet.

    In the Workbook_Open event (and perhaps occasionally at other times), check the current date. If it's within the expiration date AND not less than any other date on the sheet (to ensure that the user hasn't set the date back), record the current date on a new line and run the sheet normally. If not, exit.

    Protect the VBA project with a long and random password.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-12-2008
    Location
    St Paul, Minnesota
    Posts
    34

    After I force user to enable macro

    Okay it took me a while, but, after running through every page I could find and a couple google pages I think I have the first part right but I need confirmation.

    I originally used a tutorial to add a splash sheet, that automatically disapears after so many seconds, then after an other tutorial I got this scenario:

    I copied and pasted the scripting, and I had to add a new sheet to my workbook which was to be labeled Prompt.
    Now, When the workbook is opened, the only sheet available is Prompt,(which I have edited to tell the user to enable macros) until the user clicks "enable macros", then the whole workbook loads.

    Using the tutorial I did, I could not get both this and a splash screen to work at the same time.

    Is there a good tutorial on how to do this from scratch., After they enable macros, I would Like a new splash screen to pop up.

    MORE SPECIFICALLY to the advise you have give me
    In the Workbook_Open event (and perhaps occasionally at other times), check the current date. If it's within the expiration date AND not less than any other date on the sheet (to ensure that the user hasn't set the date back), record the current date on a new line and run the sheet normally. If not, exit.
    What is the code for this? I have veryhidden the sheet and located the Workbook open event.
    Last edited by MSTARS; 11-17-2008 at 03:50 AM.

  4. #4
    Registered User
    Join Date
    11-12-2008
    Location
    St Paul, Minnesota
    Posts
    34

    bump

    Or maybe somoene knows of a link to some good tutorials for security stuff.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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