Determining a Constant value?

S

Salad

One of my code lines is
If objFolder.Items(I).Class = 43 Then

How do I find the name of the constant 43?

If I go to the object browser and select Class, press F1 and read the
topic, there's an option for OlObjectClass Constants hyperlink in
"Returns an OlObjectClass constant indicating the object's class.
Read-only.:" I get a list of all the contants but no values, just the
names of them.

Or, I might go to the immediate window and enter
? olFlagComplete
and I get a message box "The macros in this project are disabled..." I
simply want to get the value of something. Is there a way to get the
value of a constant?
 
K

Ken Slovak - [MVP - Outlook]

You have to select each item in that enum in turn until you find the one
you're looking for in the Object Browser. FWIW, Class = 43 = olMail.
 
S

Salad

Ken said:
You have to select each item in that enum in turn until you find the one
you're looking for in the Object Browser. FWIW, Class = 43 = olMail.

Thanks for the help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top