Categories.Add Method

Outlook Developer Reference

Creates a new Category object and appends it to the Categories collection.

Version Information
 Version Added:  Outlook 2007

Syntax

expression.Add(Name, Color, ShortcutKey)

expression   A variable that represents a Categories object.

Parameters

Name Required/Optional Data Type Description
Name Required String The name of the new category.
Color Optional OlCategoryColor The color for the new category. If no value is specified, the default value is OlCategoryColorNone.
ShortcutKey Optional OlCategoryShortcutKey The shortcut key for the new category. If no value is specified, the default value is OlCategoryShortcutKeyNone.

Return Value
A Category object that represents the new category.

See Also