+ Reply to Thread
Results 1 to 4 of 4

How to Lock Row and Column when date is passed

  1. #1
    Registered User
    Join Date
    07-26-2014
    Location
    india
    MS-Off Ver
    2010
    Posts
    66

    How to Lock Row and Column when date is passed

    Dear All

    Please find attached sheet
    In that sheet you cant enter old date
    But I want to freeze all that row once date is passed
    even no one can change drop down also

    Similarly If i put date on the top
    then also all row should be freeze once date is passed

    Please help
    Attached Files Attached Files

  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 Row and Column when date is passed

    The simplest answer is to stop the user selecting the cell in the first place

    Please Login or Register  to view this content.
    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
    Registered User
    Join Date
    07-26-2014
    Location
    india
    MS-Off Ver
    2010
    Posts
    66

    Re: How to Lock Row and Column when date is passed

    No It wont work

    If we do like that then user cant enter currant date in next row
    we cant stop user for entering currant date in next row
    but if user will try to edit anything from previous date row then it should not be change

    Please try

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: How to Lock Row and Column when date is passed

    You also need to change the code on Thisworkbook module for open event for the date criteria. If cell<Date-2 Then should be changed to If cell<Date Then.

    Please find the attached and see if this works for you.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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] Lock the row for editing if Current Date has Passed
    By rudswa in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-24-2015, 07:42 AM
  2. How to lock cells after a date has passed
    By QuintonMcCloud in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-17-2015, 03:40 AM
  3. I need to lock cells after date has passed on time shees.
    By Backsurge in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-20-2013, 01:24 AM
  4. Lock cells after today date passed
    By Abdul Haneef in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2012, 07:17 AM
  5. Lock the sheet once date is passed
    By anwitha in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-11-2011, 01:55 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