+ Reply to Thread
Results 1 to 9 of 9

"Protect Sheet"

  1. #1
    Registered User
    Join Date
    02-26-2009
    Location
    Warwickshire, England
    MS-Off Ver
    Excel 2013
    Posts
    62

    "Protect Sheet"

    I am using Excel 2007 with Vista Home Premium.

    I have 15 workbooks, each with 12 sheets. I want each sheet (not the
    workbook) password protected to prevent any accidental interference with
    formulae.

    With a total of 180 worksheets I am a bit disappointed there is no way of protecting each sheet other than by entering each password - twice - one at a time!

    .....Or am I wrong? I sincerely hope I am.

    Can anyone help?

    TIA
    Last edited by VBA Noob; 02-26-2009 at 02:45 PM.

  2. #2
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    Re: "Protect Sheet"

    Might be what you are looking for.
    Attached Files Attached Files
    Yes it will. we just have to figure out how...
    If I have helped you, PLEASE click the * and add to my Rep.
    Also, if the problem is SOLVED please mark it as so.

  3. #3
    Registered User
    Join Date
    02-26-2009
    Location
    Warwickshire, England
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: "Protect Sheet"

    Thanks, Dunc...

    I gave it a try but I've never even looked at VB let alone used it. I got to pasting the script but then could not figure what to do next. Is there any chance you can give me a walk-through?

    Ed

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: "Protect Sheet"

    or simpler
    just to protect all sheets in workbook

    Please Login or Register  to view this content.
    Last edited by martindwilson; 02-26-2009 at 04:05 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    02-26-2009
    Location
    Warwickshire, England
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: "Protect Sheet"

    Thanks a lot...

    I'm afraid I'm a complete dummy when it comes to this sort of sophistication. I get so far but I'm at a loss what to do next. I keep getting it wrong, and can't get past this... (VB1.jpg image) attached.
    Attached Images Attached Images

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: "Protect Sheet"

    cant help you there! some blasted 2007 thing!
    well i can, you need them to be xlsm to do macros, darn stupid really, but hey -ho such is life
    Last edited by martindwilson; 02-26-2009 at 05:29 PM.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: "Protect Sheet"

    In Excel 2007, you have to save workbooks with macros as macro-enabled workbooks. Follow the instructions in the picture you posted.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Registered User
    Join Date
    02-26-2009
    Location
    Warwickshire, England
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: "Protect Sheet"

    Thank you, my friends. I will press on using your advise. I will let you you know how I get on.

    BTW, the "instructions" say nothing about saving in .xlsm, where or how, and only being self taught, it would have taken me forever to work it out, but thanks anyway.

    Ed

  9. #9
    Registered User
    Join Date
    02-26-2009
    Location
    Warwickshire, England
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: "Protect Sheet"

    Hi,

    All working fine using martindwilson's script. Script from Dunc had an 'error'. Something to do with incorrect ending! Only minor, I bet, but not so minor for my little brain!!

    Thanks again everybody.

    Ed

+ 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