Password Protect VB Project

Blue Dragon

Board Regular
Joined
Jun 26, 2003
Messages
162
Hi,
I've got a macro that writes VB into a module in a separate project (i.e. one on a separate workbook).

How can I password protect this 'new' project using VB?

Hope someone out there can help. :pray:
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
... well, the long answer involves the use of SendKeys.

Two points on this:

1. If you want the details do a search as it has been covered a number of times before.

2. It is not a 100% reliable method and many 'pros' would frown upon its use. Its certainly not an approach that you should use in anything that will be used by people other than yourself.
 
Upvote 0

Forum statistics

Threads
1,202,958
Messages
6,052,791
Members
444,602
Latest member
Cookaa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top