+ Reply to Thread
Results 1 to 5 of 5

how lock all of the unlocked cells in a sheet using a button on an other sheet

  1. #1
    Registered User
    Join Date
    04-07-2013
    Location
    amman,jordan
    MS-Off Ver
    Excel 2010
    Posts
    3

    how lock all of the unlocked cells in a sheet using a button on an other sheet

    after the users are done filling the input cells in the last sheet
    i want them to press a button and it will lock all cells on the first sheet
    please help

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: how lock all of the unlocked cells in a sheet using a button on an other sheet

    To protect without a password
    sheet1.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True

    To unprotect
    sheet1.Unprotect
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    04-07-2013
    Location
    amman,jordan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: how lock all of the unlocked cells in a sheet using a button on an other sheet

    thanks andylitch
    but i also want to lock all the input cells on sheet1

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: how lock all of the unlocked cells in a sheet using a button on an other sheet

    Ahmad

    That's why it says "sheet1.Protect"

  5. #5
    Registered User
    Join Date
    04-07-2013
    Location
    amman,jordan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: how lock all of the unlocked cells in a sheet using a button on an other sheet

    andylitch

    i want to LOCK the cells not to PROTECT the sheet
    protecting the sheet without locking the cells wont do anything

+ 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