Should you miss Outlook classes, here is the right way 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 huge shock after I began listening to from readers and purchasers concerning the loss. Luckily, you may 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 electronic mail messages. You are able to do the identical factor with a VBScript process, which I discover rather more environment friendly than utilizing the handbook route. On this article, I am going to evaluate 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 ideas each person 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 may obtain the .cls code module.

The VBScript process in Outlook

Should you’re accustomed to VBA however not VBScript, don’t be concerned. VBS is a subset of VBA. Even in the event you’re not accustomed to VBA, you should not have any hassle including and working 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 person 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 = Software.ActiveInspector.CurrentItem

    OLItem.ShowCategoriesDialog

    Exit Sub

ErrorHandler:

    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 should use this process to categorize any Outlook object—nevertheless it should be open for the process to work. The ultimate line shows the Classes dialog, so you may set a class for the present merchandise, OLItem. That is all of the process does, however you may proceed by checking a class (colour). 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 occasions when no merchandise is open. The code will show a warning message field after which give up the process.

SEE: Home windows 11: Recommendations on 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 may run the process in any window. You possibly can enter the code manually or import the downloadable .cls file. Should you enter the code manually, do not paste from this internet 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 internet characters that may in any other case trigger errors.

Methods to use the process in Outlook

Earlier than working the process, test the safety setting by clicking the File tab after which selecting Choices. On the backside of the left pane, click on Belief Middle after which click on Belief Middle Settings within the dialog. Within the left pane, click on Macro Settings. You will have 4 choices. Click on one of many three choices that will 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 you must change this selection, shut and restart Outlook earlier than you proceed.

Determine A

outlookvbssetcategory-a1.jpg

  Select a safety choice that enables VBScript procedures.

Now, let’s execute the process as follows:

  1. Open an current electronic mail.
  2. Click on the Developer tab (in the event you do not see the Developer tab, see “Methods 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 colour, reminiscent of blue. If blue hasn’t been chosen earlier than, the characteristic (not the code) opens a second dialog that lets you 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

outlookvbssetcategory-b-2.jpg

  Execute the process SetCategory.

Determine C

outlookvbssetcategory-c.jpg

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

Determine D

outlookvbssetcategory-d.jpg

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

You possibly can shut the e-mail once you like; it is categorized as blue. To take away the class, open the merchandise, right-click the class colour line and select Clear Class.

Add the Developer tab

Should you do not see the Developer tab, you may 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 record to the correct, test Developer, as proven in Determine E.
  4. Click on OK.

Determine E

outlookvbssetcategory-e.jpg

  Add the Developer tab to the ribbon.

It is unlikely that you will 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 Methods to add Workplace macros to the QAT toolbar for fast entry.

Additionally see

Leave a Reply