Solved

how to give your VBA code password that you record in "thisworkbook"

Posted on 2016-11-04
2
67 Views
Last Modified: 2016-11-04
Hello experts,

How can I give password to my vba code saved in "thisworkbook" so that the users cannot see inside my code where I have set a password for one of my worksheets.

It is a follow up question on a previous question:

https://www.experts-exchange.com/questions/28979577/How-can-I-set-password-for-a-sheet-in-excel.html?anchor=a41864063¬ificationFollowed=178318599#a41864063

Thank you.
0
Comment
Question by:tony01excel tony
2 Comments
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41874043
Hi,.

Go to the VBE
Tools / VBAProject Properties / Protextion
Tick Lock Project for viewing and enter your PW twice

Save Close and reopen it

Regards
0
 

Author Closing Comment

by:tony01excel tony
ID: 41874097
Great, thank you so much!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question