Tue. Oct 26th, 2021

If you happen to miss Outlook classes, this is find out how to run this VBScript process to get them again.


Picture: istock/anyaberkut

Many Outlook customers depended closely on the class characteristic till it was eliminated. So, it was no large shock once I began listening to from readers and purchasers in regards to the loss. Thankfully, you possibly can reclaim the characteristic. If you wish to achieve this manually, learn Reclaim Outlook classes for IMAP accounts. This system works with any open Outlook merchandise, not simply e mail messages. You are able to do the identical factor with a VBScript process, which I discover way more environment friendly than utilizing the handbook route. On this article, I will evaluation a easy process that automates reclaiming classes. I do wish to stress that as a result of this characteristic is now not supported, the process might cease working at any time and with out discover.

SEE: 83 Excel suggestions each consumer ought to grasp (TechRepublic)

I am utilizing Microsoft 365 on a Home windows 10 system; this process is not applicable within the on-line Mail app. In your comfort, you possibly can obtain the .cls code module.

The VBScript process in Outlook

If you happen to’re acquainted with VBA however not VBScript, don’t be concerned. VBS is a subset of VBA. Even when you’re not acquainted with VBA, you should have no hassle including and operating this process. The sub process in Itemizing A is very simple. The one catch is that the Outlook merchandise you might be categorizing should be open.

Itemizing A

Public Sub SetCategory()

    ‘Shows class dialog so consumer can

    ‘set class to open merchandise.

    ‘If class is unused, characteristic will immediate

    ‘for shortcut key choice.

    Dim OLItem As Object

    ‘Quits process if no merchandise is open.

    On Error GoTo ErrorHandler

    Set OLItem = Utility.ActiveInspector.CurrentItem


    Exit Sub


    MsgBox “Please open the merchandise you wish to categorize.”, vbOKOnly, “Error”

    Exit Sub

Finish Sub

First, the code creates an Object variable named OLItem and units it to the energetic (open) merchandise. You need to use this process to categorize any Outlook object—but it surely should be open for the process to work. The ultimate line shows the Classes dialog, so you possibly can set a class for the present merchandise, OLItem. That is all of the process does, however you will proceed by checking a class (coloration). If that class hasn’t been used earlier than, the characteristic (not the code) will immediate you to set a keystroke shortcut. You are able to do so or cancel that immediate.

There’s a little bit of error-handling for these instances when no merchandise is open. The code will show a warning message field after which give up the process.

SEE: Home windows 11: Tips about set up, safety and extra (free PDF) (TechRepublic)

To enter the process, press Alt + F11 to open the Visible Fundamental Editor. Within the Mission Explorer to the left, choose ThisOutlookSession so you possibly can run the process in any window. You’ll be able to enter the code manually or import the downloadable .cls file. If you happen to enter the code manually, do not paste from this net web page. As a substitute, copy the code right into a textual content editor after which paste that code into the ThisOutlookSession module. Doing so will take away any phantom net characters which may in any other case trigger errors.

The right way to use the process in Outlook

Earlier than operating the process, verify the safety setting by clicking the File tab after which selecting Choices. On the backside of the left pane, click on Belief Heart after which click on Belief Heart Settings within the dialog. Within the left pane, click on Macro Settings. You may have 4 choices. Click on one of many three choices that let you execute macros, as proven in Determine A. Your degree or safety will depend on you and your group; I selected Notification for All Macros. Click on OK twice. If it’s a must to change this feature, shut and restart Outlook earlier than you proceed.

Determine A


  Select a safety choice that permits VBScript procedures.

Now, let’s execute the process as follows:

  1. Open an present e mail.
  2. Click on the Developer tab (when you do not see the Developer tab, see “The right way to add the Developer tab” under).
  3. Within the Macros group, click on Macros.
  4. From the dropdown, click on SetCategory (Determine B) and click on Run.
  5. Within the ensuing dialog, select a class coloration, corresponding to blue. If blue hasn’t been chosen earlier than, the characteristic (not the code) opens a second dialog that permits you to title the class and set a shortcut. In any other case, click on the Shortcut Key dropdown and select the shortcut Ctrl + F2 (Determine C).
  6. The characteristic applies the blue class (Determine D).

Determine B


  Execute the process SetCategory.

Determine C


  Select a class (by coloration) after which set a keyboard shortcut.

Determine D


  The blue strip under the header info is the visible affirmation that you have categorized this e mail.

You’ll be able to shut the e-mail once you like; it is categorized as blue. To take away the class, open the merchandise, right-click the class coloration line and select Clear Class.

Add the Developer tab

If you happen to do not see the Developer tab, you possibly can rapidly show it as follows:

  1. Click on the Fast Entry Toolbar dropdown and select Extra Instructions.
  2. Click on Customise Ribbon within the left pane.
  3. Within the listing to the appropriate, verify Developer, as proven in Determine E.
  4. Click on OK.

Determine E


  Add the Developer tab to the ribbon.

It is unlikely that you’re going to wish to work via all these steps each time you wish to run the process. As a substitute, add the macro to the Fast Entry Toolbar. To take action, learn The right way to add Workplace macros to the QAT toolbar for fast entry.

Additionally see

Source link

By admin

Leave a Reply

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