+ Reply to Thread
Results 1 to 4 of 4

[SOLVED] how to lock your excel form after 1 year

  1. #1
    Registered User
    Join Date
    03-29-2017
    Location
    US
    MS-Off Ver
    2007, 2016, 2019
    Posts
    23

    [SOLVED] how to lock your excel form after 1 year

    Hello,

    I’m looking for a code that will not allow anyone to use the worksheet after 1 year.
    Like a subscription

    Thank you
    Last edited by X myth; 05-19-2019 at 02:30 PM. Reason: Solved.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: how to lock your excel form after 1 year

    Paste this code into the thisworkbook macro module

    https://www.wikihow.com/Protect-VBA-Code

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 05-19-2019 at 10:37 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: how to lock your excel form after 1 year

    something like


    Please Login or Register  to view this content.
    this will close the workbook right after it is opened if the date is more than 366 days after the creationdate of the workbook
    Cant use the workbook anymore.. most important downside, you cannot change the creation date so also not able to extend the subscription


    Please Login or Register  to view this content.
    this option is less invasive it will allow you to open and work with the file, but when you try to save it it will close without saving.


    you will need to give a lot more information and maybe a sample file to build something that works for your situation.

  4. #4
    Registered User
    Join Date
    03-29-2017
    Location
    US
    MS-Off Ver
    2007, 2016, 2019
    Posts
    23

    Re: how to lock your excel form after 1 year

    Thank you both very much.

    I think the closest one that I'm looking for is
    Please Login or Register  to view this content.
    Q. If someone copies, or saves under a different name will the creation date stay the same?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] how to lock selected cells lock in excel
    By koteswar in forum Excel General
    Replies: 10
    Last Post: 10-25-2018, 02:38 AM
  2. Lock a Form Control Checkbox once it is checked
    By asciscioli in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2018, 05:27 PM
  3. is possible user form just only lock the current workbook?
    By Step01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2018, 03:37 AM
  4. Replies: 0
    Last Post: 07-06-2018, 03:29 AM
  5. [SOLVED] VBA to lock a Form Control to a cell?
    By Lewej23 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-28-2012, 12:47 PM
  6. Lock and Grey Out Options on a User Form
    By laffers in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-07-2011, 08:31 PM
  7. How can Excel vba detect if Caps Lock or Num Lock is on?
    By abc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2005, 02:20 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