+ Reply to Thread
Results 1 to 3 of 3

Worksheet Protection

  1. #1
    Alex
    Guest

    Worksheet Protection

    Hi all,
    I have a sheet which runs a macro. Basically, I have a button which inserts
    a new line for data entry. I want to restrict modification on the sheet by
    the users so I have protected the sheet but have unlocked the cells that can
    be changed. However, when I press the button to insert a new row, it errors
    on me. Any suggestions as to how I can protect the sheet but allow a new
    item to be inserted by using the button?

    Thanks

  2. #2
    Registered User
    Join Date
    03-15-2006
    Posts
    6

    re worksheet protection

    at the start of the sub enter

    ActiveSheet.Unprotect password:="whatever"


    at the end enter

    ActiveSheet.protect password:="whatever"

  3. #3
    Alex
    Guest

    Re: Worksheet Protection

    Thanks!

+ 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