Solved

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

Posted on 2016-11-04
2
76 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 51

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

737 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