+ Reply to Thread
Results 1 to 3 of 3

Auto lock the Non-Blank Cells

  1. #1
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    115

    Auto lock the Non-Blank Cells

    Hello Everyone

    Can someone help me in providing the VBA code which automatically locks the Cells once the cell is filled with value.

    Only those Non-Empty cells needs to get locked and Blanks should not be locked.

    Thanks

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Auto lock the Non-Blank Cells

    This should do. It goes into the worksheet module
    Please Login or Register  to view this content.
    Click the * to say thanks.

  3. #3
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    115

    Re: Auto lock the Non-Blank Cells

    Thanks Paul for your response.

    Whereas this code is locking the Entire sheet.

    I Need only the Cells that are non-empty needs to be locked and other Blanks should be available for entering values.

+ 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. Auto Lock Worksheet except if reference cell is blank
    By simplyme_jnc279 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2016, 09:24 PM
  2. Auto lock cells with a range that includes merged cells.
    By garyreid81 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2014, 05:23 AM
  3. [SOLVED] how to lock certain cells if another cell is blank
    By naderassaleh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2014, 05:52 PM
  4. Replies: 2
    Last Post: 02-22-2012, 10:10 AM
  5. Lock cells with data; keep blank cells unlocked
    By kchen in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-28-2010, 01:36 AM
  6. Lock Cells if not blank?
    By setab in forum Excel General
    Replies: 2
    Last Post: 05-25-2010, 04:31 PM
  7. Lock cells from auto update
    By godspeed in forum Excel General
    Replies: 1
    Last Post: 09-14-2006, 05:43 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