+ Reply to Thread
Results 1 to 5 of 5

Need to lock the prevuios days cells automatically

  1. #1
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Need to lock the prevuios days cells automatically

    Hi All,

    I want excle file to lock the previous days cells (cells under column A & B)automatically on next day by 8:30 AM. Here i have attached the sample file for your reference.
    I got some VBA code and pasted it but it didn't work and moreover i dont know abt VBA. Please hlpe me in writing the code in the sample file attached.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Need to lock the prevuios days cells automatically

    You could use this code (right click on the sheet name in the bottom, then choose view code and paste on the right window):
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Need to lock the prevuios days cells automatically

    Thanks a lot...its working

  4. #4
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Need to lock the prevuios days cells automatically

    Hi,

    In additon to the above my query, i have added one more column C next to A & B and for this column also it should apply the same logic. what i need to modify in the VBA code? pls help.

  5. #5
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Need to lock the prevuios days cells automatically

    Now you could use this code:
    Please Login or Register  to view this content.
    Best regards,
    Antonio

+ 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. automatically lock cells when data is entered
    By superchew in forum Excel General
    Replies: 12
    Last Post: 05-20-2013, 02:46 AM
  2. Replies: 1
    Last Post: 03-03-2013, 04:56 AM
  3. [SOLVED] How to reset time formulated cells automatically every seven days
    By RAB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2012, 05:35 PM
  4. Automatically Lock non-empty cells two times per day
    By Vanrema in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2012, 07:08 PM
  5. Replies: 2
    Last Post: 02-22-2012, 10:10 AM
  6. Automatically lock cells
    By excelit in forum Excel General
    Replies: 3
    Last Post: 03-13-2011, 07:43 AM
  7. Replies: 9
    Last Post: 09-03-2007, 08:26 PM
  8. [SOLVED] How do I revert cells to blank automatically on spacific days?
    By Conker10382 in forum Excel General
    Replies: 5
    Last Post: 05-25-2006, 12:20 PM

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