+ Reply to Thread
Results 1 to 7 of 7

Unlock a cell with a button

  1. #1
    Registered User
    Join Date
    03-11-2009
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    Unlock a cell with a button

    Hi,
    I had an idea for a function in a sheet I am working on.
    I want to let the user unlock certain cells but only after they have clicked a button. To notify that the cell is unlocked I also want it to change colour.
    Is this possible?

    I have attached a small example. Password is mg

    unlock.xlsx
    Last edited by morteng; 03-19-2009 at 06:30 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Unlock a cell with a button

    Try this
    Please Login or Register  to view this content.
    Last edited by royUK; 03-19-2009 at 11:35 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-11-2009
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Unlock a cell with a button

    Thanks for the fast reply.
    I'll do some experiments

  4. #4
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Unlock a cell with a button

    Try This , I attached the worksheet with the macros, remember to format your buttons and unprotect otherwise you cant use them!!!!

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Unlock a cell with a button

    Roy,

    Are you not forgetting that the sheet is protected, so changing the locked property will create an error!

  6. #6
    Registered User
    Join Date
    03-11-2009
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Unlock a cell with a button

    hmm..seems i get a problem if the sheet is locked for editing.
    [Edit] What squiggler47 said...
    [Edit 2] Seems your solution works great squiggler47 Thanks a lot! Only thing it's missing now is a box where the user must type in the password when unlocking the sheet.
    Last edited by morteng; 03-19-2009 at 05:25 AM.

  7. #7
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Unlock a cell with a button

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    like :-

    Please Login or Register  to view this content.
    Last edited by squiggler47; 03-19-2009 at 05:37 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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