Skip to main content

Posts

Showing posts from April, 2015

Password Protect your MS Outlook using macro

Yes password protect your outlook not data file. There are lot of way to password protect the data file but there is only one way to protect your Outlook is by VBA macro code. This macro will protect your outlook from being opened. If your system is used by multiple user and you don't want anyone to access your outlook mail then VBA is the way. Steps to follow - 1. Open outlook, go to option and select 'Trust Center Settings" 2. Under macro setting select 'Enable all macros' radio button and save the configuration. 3. Now press alt+F11 button keyboard. 4. On Left panel in project explorer expand and open 'ThisOutlookSession'. 5. Paste the below code without quote: Private Sub Outlook_Security() passwd = InputBox("Enter Password:", "Outlook Security")     If Mid(passwd, 5, 1) = "#" Then         MsgBox ("Welcome user")         Exit Sub     Else         MsgBox ("Invalid Password, outlook quit")