+ Reply to Thread
Results 1 to 3 of 3

Protected worksheet with macro but can't delete text or resize rows

  1. #1
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    134

    Protected worksheet with macro but can't delete text or resize rows

    I have a worksheet that I have protected cells that I do not want a user to be able to change. They can only change the cells that they need to. I also have a macro that will wrap text and automatically resize the cell. The problem is, if I need to delete the text and resize the row on one of those cells that I used the macro it won't let me it says that the worksheet is protected. I thought that if when you protect the sheet that if you check the box by format cells and format rows it would let you do this. Is it because of the macro. Maybe the macro is reprotecting it and not letting me makes those changes. Need help in trying to fix my problem. TIA!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Protected worksheet with macro but can't delete text or resize rows

    Unprotect it at the start of the macro and protect it back at the end.
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Protected worksheet with macro but can't delete text or resize rows

    For protecting just for user input and not for the vba code you should use userinterfaceonly parameter:
    Please Login or Register  to view this content.
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases 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. How to delete rows in a protected worksheet
    By md95065 in forum Excel General
    Replies: 7
    Last Post: 12-19-2011, 07:27 PM
  2. In a protected worksheet allow users to delete rows
    By Ian in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 03:05 PM
  3. In a protected worksheet allow users to delete rows
    By Jason Trivett in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. 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
  5. [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, 02:05 AM
  6. [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, 12:05 AM
  7. [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
  8. [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