+ Reply to Thread
Results 1 to 2 of 2

VBA for locking cells if not todays date

  1. #1
    Registered User
    Join Date
    01-20-2015
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    2

    Post VBA for locking cells if not todays date

    Dear All,
    I am new to this site and new to excel VBA as well. Learning a lot through this forum. Thanks to all the contributors.

    I need someone to help me with a code for locking rows if adjacent cell does not contains todays date. I have seen many codes already written on this requirement but none seem to work for my sheet. I have attached my sheet for reference and working.

    The VBA has a code that was written for someone on this forum. I used it with few tweaks as per my requirements but didn't work.

    The column D picks up todays date automatically via the VBA code when ever there is entry in Column A for same row. I want to lock these entries (but still allow filtering) when code finds the date in column D is not todays date or passed date to be more precise.

    Thanks and appreciate your help
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-20-2015
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    2

    Re: VBA for locking cells if not todays date

    I managed to find this below code

    Please Login or Register  to view this content.
    but it locks the sheet on click or selection change. I want it to lock rows that don't have todays date and allow user to work rows that have todays. right now its locking everything.

    Thanks for any help.

+ 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. Replies: 5
    Last Post: 01-05-2015, 03:57 PM
  2. CF to colour cells that show a date approaching todays date
    By alexander.small in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2013, 05:23 AM
  3. Want Closed Excel workbook to alert me when celll or cells with date match todays date
    By morrisgnew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2013, 08:37 AM
  4. Using VB to find a range based on todays date and todays date +30
    By Steve_al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 09:31 AM
  5. Filling cells with 3 different colors based on date in cell and todays date
    By chinookcrew in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-23-2009, 07:36 AM

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