Skip to main content

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")
        Application.Quit
    End If
End Sub

6. Press F5 to play/execute the above code.
7. Enter any password which contains # in 5th character.

Note: On opening Outlook, dialog box will be behind the outlook splash screen.

Comments

Popular posts from this blog

eMail Back up and Restore in Microsoft Outlook

Backup: A backup or the process of backing up refers to making copies of data so that these additional copies may be used to restore the original after a data loss event. These additional copies are typically called "backups" Restore:  A Restore allows for the rolling back of  files, registry keys, installed programs, etc., to a previous state in the event of malfunctioning or failure or loss. Here we will learn quick and easy way to protect yourself and your data from permanent loss? Couple of extra minutes will save you from permanent loss of important files and email due any failure. PST (Personal STore): PST files are complex databases that contain mail, calendar, contacts and many more, when you use Microsoft Office's Outlook mail program. Simple steps to follow for back up Outlook content: Open Outlook   Outlook 2010 Steps: Click the File tab, click Open , and then click Import . Outlook 2007 Steps: Click File , and then click Import and Export . In t

Appium: error: Couldn't start Appium REST http interface listener

Sometime it happens that Appium server doesn't start getting below error message - error: Couldn't start Appium REST http interface listener. Requested port is already in use. Please make sure there's no other instance of Appium running already. Solution: In Windows - Start Task manager > Open Processes Tab > Kill process ' node.exe ' Start the Appium server again it will resolve the issue.

Hangout places Hyderabad

            Water Games : Wonder La Jalavihar Ocean Park Mount Opera Dream Valley Resort Escape Water Park Wild Waters Sanjeeviah Park(Kayaking) Treasure Island Snow World Lakes: Hussian Sagar Lake Osman sager/Gandipet Shamirpet Himayat Sagar Lake Durgam Cheruvu Ammenpur Lotus Pond Khajaguda Lake SaroorNagar Lake Parks : NTR Park Lumbini Park Ramoji Film City Shilparamam Necklace Road Botanical Garden Palapitta Cycling Club IMAX KBR Park BioDiversity Park Mrugaveni National Park japanese garden Jalagam Vengalrao Park Db Forest Gatkesar Huda Park Kukatpally GHMC Dog Park Kondapur Historic Places: Chowmahal Palace Falaknama Purani Haveli Charminar Golkonda Mecca Masjid Taramati Baradari Golkonda Tomb Qutub Shaahi Tombs Paigah tombs Osmania University Assembly/Telugu University Khairtabad Ganesh Status Temples: Birla Mandir Sanghi temple Puri Jagannath Temple Iskon PedammaTall