Outlook View

2/14/2022by admin

Custom Views can greatly improve your productivity as your emails, contacts or calendar folders are then presented exactly the way you want it. An often heard request is to be able to prevent changes being made to it later on or to be able to reset it back to the way you had it configured.


The usual workaround for this is to create a copy of your custom view so you’ll always be able to simply delete your modified version and create a fresh new copy.

A better approach would be to actually being able to lock your views. And even though this isn’t possible in Outlook itself, it is possible to lock down your views via a VBA macro.

OutlookAttachView scans all messages stored in your Outlook, and displays the list of all attached files that it finds. You can easily select one or more attachments and save all of them into the desired folder, as well as you can delete unwanted large attachments that take too much disk space in your mailbox. Added 'SMTP Server' column, which displays the SMTP server for POP3/IMAP accounts on Outlook, Windows Live Mail, and Outlook Express email clients.: 1.73 Added 'Mark Odd/Even Rows' option, under the View menu. When it's turned on, the odd and even rows are displayed in different color, to make it easier to read a single line.

The code sample provided in this guide gives you an easy to use interface to quickly lock or unlock your views.

LockViews macro

The LockViews macro allows you to easily set the LockUserChanges property of a view which is only accessible via code. The macro will check the property of all your views for the currently selected folder and then either locks or unlocks it based on your choice.

By assigning a button to the macro, you can quickly lock or unlock your views or see the current lock status of the view that you are using.

Lock or unlock your views with the click of a button!

Once your view is locked, you can still make changes to it but these are not saved and thus your view is reset when you return to the folder. Selecting a different view will be remembered.

Quick Install

Use the following instructions to configure the macro in Outlook;

  1. Download this code-file (lockviews.zip) or copy the code below.
  2. Open the VBA Editor (keyboard shortcut ALT+F11)
  3. Extract the zip-file and import the LockViews.bas file via File-> Import…
    If you copied the code, paste it into a new module.
  4. Add a button for easy access to the macro.
  5. Sign your code.

A button can be added to the main Outlook window to quickly lock or unlock your views.

Macro code

The following code is contained in the zip-file referenced in the Quick Install. You can use the code below for review or manual installation.

Click in the area above and press CTR+A to select all. Press CTRL+C to copy the code.

How to view source code of html email body in Outlook?

Viewing source code gives you an opportunity of knowing the underlying html and the other server code existing in an html email body. With the following tutorial, you will learn how to view source code of html email body in Outlook.

  • View source code of html email body in Outlook

View source code of html email body in Outlook

In Outlook 2010 or later versions, you can view source code of html email body as follows.


1. Double click to open an html email message whose source code you need to view.

2. In the Message (HTML) window, please click Actions > Other Actions > View Source in the Message tab. See screenshot:
Tip: If you are using Outlook 2007, please click Other Actions > View Source.

After clicking View Source, a text document will be opened immediately with the source code of the html email body displaying inside.


1. This View Source function can only be applied to html email message, if your opened message is not html format, you can change its format by clicking Message > Actions > Edit Message to display the Format Text tab, under the Format Text tab, click HTML in Outlook 2010 or later versions
And if you are using Outlook 2007, please click Message > Other Actions > Edit Message to display the Options tab, and then click HTML under Options.

2. You can also view the source code of html email body by opening the message and put the cursor at the message body then right click, choose View Source from the right-clicking menu.

Easily view source code of an HTML message header with Kutools for Outlook

If you have Kutools for Outlook installed, you can apply its Message Header Analyzer feature to view the source code of an HTML message header at ease.

Kutools for Outlook: Add more than 100 handy tools for Outlook, free to try with no limitation in 60 days. Read More Free Trial Now


1. In your Outlook, click to select the HTML email whose message header’s source code you will to view, and click Kutools Plus > Message Header Analyzer.

2. In the Message Header Analyzer dialog, please enable the Source Data tab, and you will get the source data of message header of the selected HTML email.

Demo: view source code of html email in Outlook

Outlook View Headers

Tip: In this Video, Kutools tab is added by Kutools for Outlook. If you need it, please click here to have a 60-day free trial without limitation!

Kutools for Outlook - Brings 100 Advanced Features to Outlook, and Make Work Much Easier!

  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by custom; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails in seconds; Auto Add Greeting when reply; Add Date into subject...
  • Attachment Tools: Manage All Attachments in All Mails, Auto Detach, Compress All, Rename All, Save All... Quick Report, Count Selected Mails...
  • Powerful Junk Emails by custom; Remove Duplicate Mails and Contacts... Enable you to do smarter, faster and better in Outlook.

or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Outlook View Settings

  • To post as a guest, your comment is unpublished.
    @Thomelrobinson What? He literally explains every step
  • To post as a guest, your comment is unpublished.
    How do I that
  • To post as a guest, your comment is unpublished.
    I would like to be able change to print code to make the grid on the print out from Outlook 2016
Comments are closed.