+ Reply to Thread
Results 1 to 12 of 12

expiry date

  1. #1
    Registered User
    Join Date
    03-18-2008
    Posts
    11

    expiry date

    good morning

    i want to set up a spread sheet that has an expirty date of 30 days and once reached the spread sheet can no longer be read

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: expiry date

    Good morning freshbreath
    Quote Originally Posted by freshbreath View Post
    i want to set up a spread sheet that has an expirty date of 30 days and once reached the spread sheet can no longer be read
    You want to timebomb a workbook. There is a comprehensive article by Chip Pearson on that very subject here. However, pay extra special attention to the paragraph about Excel's security being weak. This kind of thing can be circumvented very easily by a knowledgable user, and there is no way of zipping a workbook up that tightly that it can't be reversed. Just something to consider ...

    Good luck!

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    03-04-2009
    Location
    grantham
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: expiry date

    had a look and im very new to this and not sure. i like the suicide one but not sure where i put the days part of the coding

  4. #4
    Registered User
    Join Date
    03-04-2009
    Location
    grantham
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: expiry date

    can anyone help me put a formula in so the spread sheet terminates after a given time span

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: expiry date

    You cannot do it with a formula. If I recall Chip Pearson tells you how to do this. Here's an example that might help
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    03-04-2009
    Location
    grantham
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: expiry date

    thank you for your help but this is beyond me and im struggling to understand

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: expiry date

    I've put notes in the VBA, you just need to change the number of uses to a date. I'm not sure what else can help you need a little basic VBA knowledge to attempt to do something like this.

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: expiry date

    This example stores the start date the first time the workbook is opened. It then checks subsequent openings & will close if the data is greater than 30 days from first opening.

    The start date is on a very hidden sheet
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-04-2009
    Location
    grantham
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: expiry date

    thank you i will have a look

  10. #10
    Registered User
    Join Date
    03-04-2009
    Location
    grantham
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: expiry date

    tried it works perfect but if i disable the macro i can over ride it ?

  11. #11
    Registered User
    Join Date
    03-04-2009
    Location
    grantham
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: expiry date

    how do i recreate this with a hidden sheet where the date is

  12. #12
    Registered User
    Join Date
    03-04-2009
    Location
    grantham
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: expiry date

    sorry all sorted now

+ 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