+ Reply to Thread
Results 1 to 7 of 7

lock all cells before current date (Dates are in Column)

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    Maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    15

    Lightbulb lock all cells before current date (Dates are in Column)

    Book1.xlsx

    Hi,

    Please help me with some VBA Coding to automatically lock cells D2:L15 if the date matches with the system date. I have attached the file. If there is any other way instead of using VBA coding that will do.
    It is a little urgent please help me out.

    Thank you.
    Regards,
    Sanoj.
    Last edited by Sanoj; 03-07-2012 at 10:53 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: lock all cells before current date (Dates are in Column)

    Hi. welcome to the forum

    .....if the date matches with the system date
    Which date? You mean today??

    Which is the system date??

    One possible way(with "system date", in o1), is this.

    Data>>vALIDATION>>custom>> =TODAY()=O1
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    03-06-2012
    Location
    Maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: lock all cells before current date (Dates are in Column)

    Actually I want the date on task bar Right hand side bottom check the date with A column and if the date is past current date should lock the cells D2:L15.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: lock all cells before current date (Dates are in Column)

    ...Sorry. I can not follow you...

  5. #5
    Registered User
    Join Date
    03-06-2012
    Location
    Maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: lock all cells before current date (Dates are in Column)

    I mean the date on column A should check the date and if its past current date should lock D2:L15.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: lock all cells before current date (Dates are in Column)

    ..So try this

    Highlight the range

    =TODAY()<$A2
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-06-2012
    Location
    Maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: lock all cells before current date (Dates are in Column)

    Thanks for your help, But this is not locking the cell exactly as we can delete and pasted data in past date cells.
    Last edited by Sanoj; 03-07-2012 at 01:08 PM.

+ 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