+ Reply to Thread
Results 1 to 6 of 6

how to time-lock a excel document

Hybrid View

  1. #1
    Registered User
    Join Date
    09-26-2019
    Location
    malaysia
    MS-Off Ver
    lastest version
    Posts
    3

    how to time-lock a excel document

    dear experts , how do i put a time lock or a count-down timer on my excel spreadsheet so that once the time reach, the excel cannot be opened or used.

    please guide or teach me. please help

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: how to time-lock a excel document

    something like:

    Formula: copy to clipboard
    Private Sub Workbook_Open()
    If Now() > DateValue("20/09/2019") Then
    MsgBox ("You can't use this file. File expired on: 20/09/2019.")
    ThisWorkbook.Close
    End If
    End Sub

    of course it not prevent to open. It have to be open to get message that can't be used. And obviously only with macro on.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    09-26-2019
    Location
    malaysia
    MS-Off Ver
    lastest version
    Posts
    3

    Re: how to time-lock a excel document

    Thank u. how do i on the macro?

    and where do i paste this portion?

    sorry to trouble u, because its the first time i am using macro

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: how to time-lock a excel document

    Click Alt+F11, new window should open (VBA editor) and then paste it here:

    Capture.JPG

  5. #5
    Registered User
    Join Date
    09-26-2019
    Location
    malaysia
    MS-Off Ver
    lastest version
    Posts
    3

    Re: how to time-lock a excel document

    thank u. manage to do it.

    but sadly, if they put disable macros when they open the doc. the thing will still be able to open

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: how to time-lock a excel document

    Sure. As I said 'it is not prevent to open'.
    If you want you can set password to open file. That's only solution in this matter, I think.

+ 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. Track Computer Lock and Unlock time in excel
    By ssuman1010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2015, 02:08 AM
  2. Track Computer Lock and Unlock time in excel
    By Subir Basak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2014, 03:07 AM
  3. Track Computer Lock and Unlock time in excel
    By Subir Basak in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-26-2014, 08:06 PM
  4. Replies: 1
    Last Post: 07-08-2011, 02:18 AM
  5. Excel spreadsheet lock based on time and condition
    By coolanks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2008, 03:29 AM
  6. Lock down of Hyperlinks on shared document
    By chris_mayer in forum Excel General
    Replies: 0
    Last Post: 04-03-2007, 09:20 AM
  7. How do I set up a time lock in Excel?
    By Justin in forum Excel General
    Replies: 2
    Last Post: 03-20-2006, 09:15 PM

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