+ Reply to Thread
Results 1 to 3 of 3

Lock unlock cell depending condition

  1. #1
    Registered User
    Join Date
    08-20-2018
    Location
    Zaragoza
    MS-Off Ver
    2007
    Posts
    9

    Lock unlock cell depending condition

    Good afternoon;

    I need the help of somebody.

    I need one code to lock some especific range of cells depending of the value of other cell in the same row.

    If the value of the cell X in the column F is null or empty, the ranges AGX:AIX; AKX:AMX; CDX:CFX; CHX:CJX is locked, if not is not unlocked.

    The code used is:

    Please Login or Register  to view this content.
    But dont lock and unlock nothing.

    Could somebody to help me?

    Is it possible no to use "Worksheet_Change" in order that allways works without changing nothing in the worksheet?

    Thanks in advance.
    Last edited by Pepe Le Mokko; 01-27-2020 at 11:10 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Lock unlock cell depending condition

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks

  3. #3
    Registered User
    Join Date
    08-20-2018
    Location
    Zaragoza
    MS-Off Ver
    2007
    Posts
    9

    Re: Lock unlock cell depending condition

    Sorry, could you correct directly in it?

    I am not one expert in VBA.

    Thanks in advance.

+ 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. Lock/Unlock cells based on value in another cell
    By 13gentj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2014, 11:00 PM
  2. lock and unlock a cell
    By 288enzo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2014, 08:38 PM
  3. Unlock / Lock cell based on another cel value
    By BernardTodd in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2013, 10:38 AM
  4. Conditional cell lock/unlock
    By caspollux23 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2010, 09:07 PM
  5. MAcro to lock and unlock cells depending on rows selected.
    By ballack in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-25-2007, 11:04 PM
  6. Lock or unlock cell in vba
    By peejay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2007, 05:34 PM
  7. Lock and unlock cells conditionally depending on input in another
    By Frustrated in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-11-2005, 11:40 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