Protecting VBA’s

If you have done much MicroStation VBA development at all you realize how easy it is for a casual or curious user to open the VBA Editor and possibly break your code. For internal company deployments you can modify the security on the .mvba files so that these users have read-only access. When distributing your VBA’s to clients or consultants you may not have that level of control. The VBA Editor allows for password protecting your .mvba files. By protecting your files with a password users are still able to run the macros but cannot view or edit the source code without entering the password.

To password protect your VBA macro:

  1. Select Tools > Default Properties from the VBA Editor top menu bar.
  2. In the Project Properties dialog click the Protection tab.
  3. Enter your password into the password fields at the bottom
  4. Click the OK button in the dialog to save the password
CAD Training

Note: This password protection offers only minimal protection for your VBA. There are many VBA password cracking tools available that will allow more sophisticated users to bypass this protection measure.

EnvisionCAD

Since 1996, EnvisionCAD has been a nationally recognized leader in the configuration, customization, implementation, training & support for CAD software solutions. Our individualized approach has benefited private engineering firms and government agencies alike. Basic or advanced, we can help you get the most from your CAD technology.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *