+ Reply to Thread
Results 1 to 3 of 3

Button to lock cells

  1. #1
    Registered User
    Join Date
    11-11-2014
    Location
    Chester
    MS-Off Ver
    2010
    Posts
    1

    Button to lock cells

    I have an approval button on my form which I want to use to lock all the cells so they can't be changed. See attached
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Button to lock cells

    You have several merged cells in your range. Try unmerging them and run the macro again. Merged cells very often cause problems for Excel. You should avoid using them if at all possible.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Button to lock cells

    Hi there,

    I agree with Mumps comment that merged cells are definitely more trouble than they're worth!

    You can use the following code if you REALLY don't want to unmerge those cells:

    Please Login or Register  to view this content.
    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

+ 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 Button that Locks Specific Cells
    By mushman1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-16-2015, 09:35 PM
  2. How to lock or unclock cells using a button
    By nageshpolu in forum Excel General
    Replies: 3
    Last Post: 06-18-2014, 10:27 AM
  3. Button to copy specific cells to another sheet, lock button if cell has text
    By elmerg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2014, 02:10 AM
  4. Replies: 3
    Last Post: 08-28-2013, 05:39 AM
  5. how lock all of the unlocked cells in a sheet using a button on an other sheet
    By ahmad1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2013, 07:46 AM
  6. by clicling a button,lock the cells
    By shivarajm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2012, 05:12 PM
  7. Protect/Lock specific cells independently through button
    By Edward HS in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-04-2008, 02:47 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