• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Hide Formulas

After protecting the sheet with a password, opening it the next time round comes along with another worksheet, as the picture shows. I just want to be able to protect my sheet with a password and open it successfully the next time round. Even after taking off the password(1), it still opens requesting a password. Thank You.
 

Attachments

  • 1.png
    1.png
    10 KB · Views: 3
  • Final saved.xlsm
    148.6 KB · Views: 2
Pasadu
What have You protected?
... which sheet?
What did You try to do with this?
Screenshot 2021-05-22 at 18.16.01.png
.xlsb -file do not have Password to modify any more...
 

Attachments

  • Final saved.xlsm
    148.4 KB · Views: 2
  • Final saved.xlsb
    144.9 KB · Views: 1
I have Protected some cells on the main sheet (MPS sheet)."
I tried the option in the picture you have attached while i was having problems but i disabled it afterwards.
Currently, it is only the place in my picture attached that i inputted the Password. The password is 1. With other different workbooks without macro, i can protect without any problem but this current worksheet gives me issues when protecting with a password. All i want is a way to protect my MPS worksheet without anybody having access to it without a Password
 

Attachments

  • Screenshot 2021-05-22 152320.png
    Screenshot 2021-05-22 152320.png
    37.6 KB · Views: 1
Last edited:
Pasadu
As You have written about Your ...
a) one code do something while someone will open that file ... and there is no password
b) File Password - Your sent file has that lower password
Question:
What would You protect?
... as well as You have had hints - what You should protect too?
 
Thank you for the feedback, but i do not really understand it much though i'll try to respond.
I have locked the files that i do not want anybody to access, and left open the cells that can be modified.
Now after locking the cells, i have to protect the entire MPS sheet in general. So i inputted a Password. I protected the worksheet, not the workbook.
And i have erased the picture below yet i still face the same problem.
74703 74704.
 
Pasadu
Did You test that my sent 'right-side-file'? Yes/No?

You wrote that do not want anybody to access ... hmm? Then why to make a file?
left open the cells that can be modified ... should do with sheet protection with code ...
i have to protect the entire MPS sheet in general what do You mean ... in general?
One protection has done by my code and it's still without password!

What would You protect?
Could Your write one more time?
 
Yes i have tested the file you sent to me, i realized the vba is locked with a Password. I appreciate that.

With nobody accessing, I meant that i want users to access some cells (A5,A8,A11,column L and M), and prevent users from accessing the other cells on the worksheet. So those cells are locked and protected on the MPS sheet. It works fine just as i want it to be.

When the MPS sheet is locked without a Password, it works fine when i close the file or open it on any day. But i just tried locking it with a Password this afternoon and started experiencing the problems.

When i try to add a Password after unprotecting the sheet and protecting it again with a password, it does not work better because whenever i close the file and open it again, the first thing it asks me is Password even though i have not protected the workbook.
74706
Now after opening this, another excel page pops up that says
74707
Please I'm sorry if my understanding is low on this because VBA is a new thing to me. Thank You.
 

Attachments

  • 1621699708721.png
    1621699708721.png
    10 KB · Views: 0
Pasadu
I saw Your previous reply which You ... deleted.

Test this version ...
> do this work as You would have an image? <

>> to open file use same password as You used 1
>> other passwords are Your username
If file has opened as read-only then that cannot save ...
MPS-sheets password is done by code.

One reason of Your ...
... was that You tried to do something same, which there has already done by code.

>> Questions? <<

.. and of course, You post here something ... same.
 

Attachments

  • Final saved.xlsb
    154.5 KB · Views: 3
I'm sorry i deleted the first one because it was not time to send it to you but mistakenly sent it, sorry.
Alright, i have tested your file, and seen the updates and now understands why it is so.
Thank you very much for your patience and time.
Please at the beginning of my work, you locked my worksheet for me as i requested. If it is possible, can you please show me the code or how you locked A1:O19 without scrolling? Thank You.
 
Back
Top