+ Reply to Thread
Results 1 to 10 of 10

Can not delete rows on protected worksheet

  1. #1
    Registered User
    Join Date
    11-15-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    16

    Can not delete rows on protected worksheet

    I have a macro in the attached protected worksheet to allow users to delete rows, sort, ect.
    The macro also inserts a copied row when the user enters data in the first cell of the last row.
    However, when a user tries to delete a row a warning window opens and informs the user the worksheet needs to be unprotected first. This should not be happening as AllowDeletingRows has been enabled??????
    Any help would be appreciated.


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by wwestlin; 11-23-2017 at 05:55 PM.

  2. #2
    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: Can not delete rows on protected worksheet

    Please take a few minutes to read the forum rules, and then edit your post to add CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-15-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    16

    Re: Can not delete rows on protected worksheet

    Thanks shg!

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

    Re: Can not delete rows on protected worksheet

    I think that I found a solution. Try the attached file. When you want to delete a row click on any cell in column A and press the DELETE key.
    Attached Files Attached Files
    Last edited by Mumps1; 11-26-2017 at 03:09 PM.
    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.

  5. #5
    Registered User
    Join Date
    11-15-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    16

    Re: Can not delete rows on protected worksheet

    That didnt work quite like I wanted, but its good enough.
    How do I add a password to protect the document? I tried to add a password "password" but then the code didnt work.:
    Please Login or Register  to view this content.

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

    Re: Can not delete rows on protected worksheet

    Please Login or Register  to view this content.
    You'll also have to add the password to the macro in the regular module:
    Please Login or Register  to view this content.
    Last edited by Mumps1; 11-29-2017 at 12:35 PM.

  7. #7
    Registered User
    Join Date
    11-15-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    16

    Re: Can not delete rows on protected worksheet

    Thank you for your help!

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

    Re: Can not delete rows on protected worksheet

    My pleasure.

  9. #9
    Registered User
    Join Date
    11-15-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    16

    Re: Can not delete rows on protected worksheet

    I would like the user to be able to delete row. I have cells in the column that are locked with formulas. This is the code I have in the worksheet right now. How can I use VBA to do this.

    Please Login or Register  to view this content.
    Last edited by wwestlin; 07-25-2018 at 06:13 PM.

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

    Re: Can not delete rows on protected worksheet

    Sorry for the delay. I was out of town. Please attach a copy of an updated file that contains some data in the "PP Weld Log" sheet and explain in detail exactly what you want to do referring to specific cells, rows and columns.

+ 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. how to insert and delete rows in a protected worksheet
    By marj0909 in forum Excel General
    Replies: 5
    Last Post: 06-23-2017, 03:53 AM
  2. How to delete rows in a protected worksheet
    By md95065 in forum Excel General
    Replies: 7
    Last Post: 12-19-2011, 07:27 PM
  3. In a protected worksheet allow users to delete rows
    By Ian in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] In a protected worksheet allow users to delete rows
    By Jason Trivett in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] In a protected worksheet allow users to delete rows
    By Jason Trivett in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  6. [SOLVED] In a protected worksheet allow users to delete rows
    By Jason Trivett in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2005, 05:05 AM
  7. [SOLVED] How do I delete rows from a protected worksheet?
    By Dan T in forum Excel General
    Replies: 4
    Last Post: 07-08-2005, 04:05 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