Hide my VB script?

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Hi,

Can anyone please advise if it is possible to hide or lock the Vb
script in a workbook? I would like to prevent any of the code being
changed by the users of the workbook


--
Cheers

Peter

Remove the INVALID to reply
 
You can password protect (right-click the project, and select Properties),
but be aware, it's about as foolproof as a combination lock.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
You can password protect (right-click the project, and select Properties),
but be aware, it's about as foolproof as a combination lock.

Hi Bob,

Many thanks - I'm sure that will suffice. (It took me a while to
realise that after I had set the password I had to close the workbook
for the protection to take effect!)


--
Cheers

Peter

Remove the INVALID to reply
 
In the VBA Editor, go to the Tools menu, choose VBA Project
Properties and then the Protection tab. There, check the "Lock
project for viewing" option and assign a password. Note that
this is not very secure; there are a variety of password breakers
available on the net.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top