+ Reply to Thread
Results 1 to 11 of 11

how to lock selected cells lock in excel

  1. #1
    Registered User
    Join Date
    10-05-2018
    Location
    INDIA
    MS-Off Ver
    OFFICE 2013
    Posts
    44

    how to lock selected cells lock in excel

    hello it maybe cross post

    but I cant't lock some of cells. when i go to protect sheet it lock entire sheet. can we lock selected cells


    thank you

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: how to lock selected cells lock in excel

    >Select the cells you want to lock.
    >On the Home tab, in the Alignment group, click the small arrow to open the Format Cells popup window.
    >On the Protection tab, select the Locked check box, and then click OK to close the popup.
    NOTE: If you try these steps on a workbook or worksheet you haven't protected, you'll see the cells are already locked. This means that the cells are ready to be locked when you protect the workbook or worksheet.
    >On the Review tab in the ribbon, in the Changes group, select either Protect Sheet or Protect Workbook, and then reapply protection.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    10-05-2018
    Location
    INDIA
    MS-Off Ver
    OFFICE 2013
    Posts
    44

    Re: how to lock selected cells lock in excel

    Hi atul I tried this but it locks entire sheet. here i attach my work book. the green coloured columns i need to lock
    thank you for response
    Attached Files Attached Files

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: how to lock selected cells lock in excel

    File attach. plz check. green selected cell lock
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: how to lock selected cells lock in excel

    Excel protection/locking works in reverse. All cells are locked by default, the lock is activated when you Protect the sheet.

    So what you need to do is Unprotect the cells you need to have available. Then when you protect the sheet, only those will be usable.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    10-05-2018
    Location
    INDIA
    MS-Off Ver
    OFFICE 2013
    Posts
    44

    Re: how to lock selected cells lock in excel

    hi avk can you explain me how did you this?
    thank you

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: how to lock selected cells lock in excel

    Did you try my approach?

  8. #8
    Registered User
    Join Date
    10-05-2018
    Location
    INDIA
    MS-Off Ver
    OFFICE 2013
    Posts
    44

    Re: how to lock selected cells lock in excel

    thanks i got it no need to explain thanks again

  9. #9
    Registered User
    Join Date
    10-05-2018
    Location
    INDIA
    MS-Off Ver
    OFFICE 2013
    Posts
    44

    Re: how to lock selected cells lock in excel

    yes i got it

  10. #10
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: how to lock selected cells lock in excel

    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,969

    Re: how to lock selected cells lock in excel

    What did you mean in the opening post about this being a cross-post? Have you asked the same question on another forum? If so, you must provide a link to it here.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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 selected cells in all the sheets in a workbook
    By S@2014 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2014, 08:02 AM
  2. Replies: 2
    Last Post: 02-22-2012, 10:10 AM
  3. how to hide and lock only few selected cells
    By gr8ice in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-30-2011, 12:07 PM
  4. 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
  5. How to Lock the selected cells in Excel worksheet
    By Siva in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-08-2006, 06:55 AM
  6. How do I lock selected cells, so only I can change them?
    By Robert in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2006, 12:45 PM
  7. How can Excel vba detect if Caps Lock or Num Lock is on?
    By abc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2005, 02:20 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