+ Reply to Thread
Results 1 to 9 of 9

Lock Cells At Midnight

Hybrid View

  1. #1
    Registered User
    Join Date
    01-12-2009
    Location
    boston
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: Lock Cells At Midnight

    OK, let me put it this way:


    WHEN ATTEMPTING TO EDIT A CELL IN COL. A (say, A30), "LOCK THIS CELL" IF THE DATE IN THE CORRESPONDING CELL OF COL. D (D30) IS <TODAY(). BUT "ALLOW" IF THIS CELL (OF COL. D) IS >TODAY().


    That's really all I'm looking for here...

    Thanx,
    Jeff

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Lock Cells At Midnight

    Hi Jeff,

    I don't experience the problem you outline. I have both advanced my PC date to check this, and also, but independently advanced the date in column D to > today. In both cases the macro works as you require.

    Are you sure you have created this in the Worksheet_Change event?
    If so, can you upload your version of the workbook so we can take a look?


    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-12-2009
    Location
    boston
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: Lock Cells At Midnight

    OK, I'll get back to you tonight, after work...

    Tanx again,
    Jeff

  4. #4
    Registered User
    Join Date
    01-12-2009
    Location
    boston
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: Lock Cells At Midnight

    Hi,

    I scrapped that WS I was working on. But the bottom line is that, when I pasted that above code into any 2003/XP Wks, all I get is a pop up message, but no locking of cells. I can still edit/delete at will.

+ 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