+ Reply to Thread
Results 1 to 3 of 3

Conditionally Lock Cells

  1. #1
    Forum Contributor
    Join Date
    09-19-2004
    Location
    Canada
    Posts
    408

    Conditionally Lock Cells

    Hi all,

    I am trying to prevent a user from changing the data that I pasted in his/her log. The data is pasted in columns A to M, P and X. This data also has specific codes in column H -- AST, EMP, HVR, NDU and TEM. The user can enter other data in any other column and can also add new rows of data (which will have different codes in column H).

    I have the following code, but it is not locking the cells. Could you review and help me fix it, please.

    Please Login or Register  to view this content.
    Thank you,
    Gos-C
    Attached Files Attached Files
    Using Excel 2010 & Windows 10
    "It is better to be prepared for an opportunity and not have one than to have an opportunity and not be prepared."

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner VA USA
    MS-Off Ver
    MS 365 Family 64-bit 2505
    Posts
    27,439

    Re: Conditionally Lock Cells

    "And" is a logical operator. You cannot string multiple statements together with "And". You use it to determine if a condition is true or false.
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    09-19-2004
    Location
    Canada
    Posts
    408

    Re: Conditionally Lock Cells

    Great! Works like a charm.

    Thank you very much, Jeff.

    Cheers,
    Gos-C

+ 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. Conditionally lock multiple cells in a row based on one cell value.
    By DavidPAR in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2012, 02:10 PM
  2. code to conditionally lock 4 cells depending on one cell
    By kchen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-29-2010, 03:00 PM
  3. Conditionally lock cells based on value in input cell
    By mbrady1973 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-09-2008, 06:54 PM
  4. Lock a cell conditionally
    By JoshuaSQ in forum Excel General
    Replies: 2
    Last Post: 02-15-2007, 06:51 PM
  5. How to conditionally lock cells
    By JGC in forum Excel General
    Replies: 1
    Last Post: 11-16-2006, 05:49 AM
  6. [SOLVED] conditionally lock cells?
    By GoBobbyGo in forum Excel General
    Replies: 1
    Last Post: 03-22-2006, 03:10 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
  8. How do I conditionally lock cells?
    By wahamler in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2005, 05:05 PM

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