+ Reply to Thread
Results 1 to 3 of 3

Macro to Protect Unprotected Cells on worksheet

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    99

    Macro to Protect Unprotected Cells on worksheet

    I have a workbook with several complicated formulas in it.

    Therefore I have the worksheet protected save the cells to enter data into.

    Is there a Macro that could be run after the data is entered which will protect the data entered into the unlocked cells.

    I can record a macro and it asks me to enter a password to open unlock the sheet.

    I would like the macro to do the following

    1- When ran ask the user if they are sure they want it to secure the worksheet

    2- If the user selects yes then lock the entire work sheet including the cells which the user can change the data in.

    3- If the user selects no the the Macro will stop running.

    Attached is a simple worksheet with what I have been able to do.

    Thank you for any assistance yo may be able to give.
    Attached Files Attached Files
    Last edited by nsmjc; 03-29-2014 at 06:29 AM. Reason: resolved

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Macro to Protect Unprotected Cells on worksheet

    Try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Macro to Protect Unprotected Cells on worksheet

    that worked thank you

+ 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. Macro to Insert row and protect som cells anywhere in the Worksheet
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-20-2013, 06:13 PM
  2. highlight locked cells in unprotected worksheet
    By alexskinner in forum Excel General
    Replies: 4
    Last Post: 05-17-2010, 12:12 AM
  3. protect sheet, not move after enter, select unprotected cells only
    By Peto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2009, 05:05 PM
  4. Keep Sheet Unprotected but protect some cells
    By Dave69rock in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-30-2008, 05:17 AM
  5. Protected worksheet with unprotected cells i.c.w. remarks
    By FrankOtter68 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-16-2006, 11:25 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