+ Reply to Thread
Results 1 to 6 of 6

How to lock the cell from Editing after time is over using Macro

  1. #1
    Forum Contributor
    Join Date
    11-07-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    100

    How to lock the cell from Editing after time is over using Macro

    Dear All expert,

    Like to check with ALL. I am developing something whereby allow a user to book for a facilities using Excel. As now after they book, they can anytime amend the booking by double click the cell.

    Hence, wondering how to write the macro to lock the cell automatically after the time or date is over so that user can't anyhow shorten the timing for the booking result in unfair charges?

    Thank you very much.

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    365 32bit Win
    Posts
    1,909

    Re: How to lock the cell from Editing after time is over using Macro

    Assuming the sheet is protected, you could change the Locked property of the cell to true.
    However, I don't think there is anything you can do in Excel which would stop a determined attempt to shorten the timing.

  3. #3
    Forum Contributor
    Join Date
    11-07-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: How to lock the cell from Editing after time is over using Macro

    Hi ByteMarks

    How to write the macro to detect that the timing is over and automatically lock the cell?

    Thank you for advise.

  4. #4
    Forum Contributor
    Join Date
    11-07-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: How to lock the cell from Editing after time is over using Macro

    Any idea how can I write the macro so that when I get it run daily (don't mind to open the file daily), just hope that the cell that is already over the date will lock automatically?

    Any help will be appreciate.

    Thank you very much.

  5. #5
    Forum Contributor
    Join Date
    11-07-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: How to lock the cell from Editing after time is over using Macro

    Any help please??? Will be deeply appreciate.

    I just need a code of when detect time over, the cell will lock automatically...

    Thank you.

  6. #6
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: How to lock the cell from Editing after time is over using Macro

    Upload a file
    (click on the go advanced button and look for manage attachments)
    And we can look for how best to do this.

    Note that as Bytemarks says - this will probably be easy for a person to break this system..... we might be able to put in something for you so you can probably tell if they fiddled with it.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

+ 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. Hide function and lock for specific cell and allowing editing to other cell
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2016, 03:36 AM
  2. Lock Row for editing
    By ecko007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2016, 03:39 AM
  3. [SOLVED] Lock Cell from Editing on Open Based on Value of Another Cell
    By VB@N3wb|3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2013, 11:12 AM
  4. [SOLVED] Help Editing A Time Based Macro
    By artiststevens in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-11-2012, 10:26 PM
  5. How lock for editing
    By td3601 in forum Excel General
    Replies: 2
    Last Post: 05-18-2012, 11:13 AM
  6. Possible to lock data validation and yet permit cell editing?
    By danknight4jc in forum Excel General
    Replies: 3
    Last Post: 04-22-2009, 04:41 PM
  7. lock cells from editing
    By associates in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2008, 11:58 PM

Tags for this Thread

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