+ Reply to Thread
Results 1 to 3 of 3

Thread: Locked cells and makro not working?

  1. #1
    Valued Forum Contributor
    Join Date
    05-18-2009
    Location
    Slo
    MS-Off Ver
    Excel 2007
    Posts
    210

    Locked cells and makro not working?

    Hello

    What I'm trying to do is lock a few cells and secure the sheet with a password. But when I do and if I try to run the makro I get an error becose the makro could not copy the text from the UserForm to the sheet. Is it possible to make the makro work and still keep the cells locked so other users can't change the cells value later?
    Last edited by stojko89; 11-15-2011 at 03:15 AM.

  2. #2
    Registered User
    Join Date
    05-13-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Locked cells and makro not working?

    Hi,

    You can removed the password protection at the beggining of the Macro and again apply it at the end.

    ActiveSheet.Unprotect Password:="yourpassword"

    at the end --->
    ActiveSheet.Protect Password:="youdontknow"

    hope it works for u
    Paddydive

  3. #3
    Valued Forum Contributor
    Join Date
    05-18-2009
    Location
    Slo
    MS-Off Ver
    Excel 2007
    Posts
    210

    Re: Locked cells and makro not working?

    LoL....

    So thats the code

    It works just fine thanks - again

    I was tryn this:

    Sheets("Narocila").Unlock=password
    hehehe no wonder it didn't work :D

+ 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.2.0