Creating
It is possibe to create your own enumerations.
All constant values are treated as Long integers.
The word "Enum" is short for Enumeration.
Always prefix your enumeration with the characters "en".
Always prefix the values with the characters "en".
When you refer to the constant in the code always prefix it with the enumeration name.
Example 1
If you don't specify any numerical values the enumeration will start at 0 and each subsequent value will incrememt by 1.
Example 2
You can also provide your own numerical values.
Example 3
You can also use an existing enumeration constant to determine the value of another one.
Case Sensitive
You can declare enumerations in mixed case but ..
When you use them in your code if you type them in lowercase, the original declaration will be changed to lowercase.
Other Information
Beware using floating point values with Enum.
This functionality was added in Office 2000.
The integers are rounded to the largest integer.
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext