Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Protecting VB



Hi There,

How do I password protect somebody from accessing the VB in a my
workbook?

Kind Regards

D

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Protecting VB

In the VBA Editor, go to the Tools menu, choose VBA Project Properties and
then the Protection tab. There, check "Lock project for viewing" and assign
a password.

Do note, however, that the password protection is notoriously weak. I use
VBAKey from Passware and can get into any VBA project in a matter of 2 or 3
seconds. If your code has propriety or other value, you would be MUCH
better off taking the code out of the workbook and putting it into a COM
Add-In. Since a COM Add-In is compiled to machine code as a DLL and you
distribute only the DLL to the end users, source code is never distributed
so security/password protection is not an issue.



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"Darin Kramer" wrote in message
...


Hi There,

How do I password protect somebody from accessing the VB in a my
workbook?

Kind Regards

D

*** Sent via Developersdex http://www.developersdex.com ***



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
protecting formulas without protecting sheet so grouping still wor JM Excel Discussion (Misc queries) 1 June 4th 09 06:42 AM
Protecting Formulas FP Novice Excel Discussion (Misc queries) 2 August 8th 06 05:51 PM
protecting... Mon Excel Discussion (Misc queries) 2 December 8th 05 07:59 PM
Protecting VBA Macros hecsan07 Excel Programming 3 August 19th 05 07:16 PM
Protecting buttons with VB code rather than protecting sheets/books? StargateFanFromWork Excel Programming 2 July 16th 04 04:03 PM


All times are GMT +1. The time now is 09:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"