?
Solved

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

Posted on 2016-11-04
2
Medium Priority
?
99 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 52

Accepted Solution

by:
Rgonzo1971 earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

743 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