OLB enum values

P

Phil

I am creating a class to connect to Microsoft Word using VC++ 6.0 ClassWizard
and the object library MSWORD.OLB.

Most of the function calls in this class use the Varient type to pass
parameters, but I cannot find the actual values for the enumeration types so
I can pass in that value. Does anyone know how or where these enumeration
types are defined.

For example, WdUnits is composed of wdCharacter, wdWord, wnSentence, etc.

Thanks for your help.

Phil
 
J

Jonathan West

Phil said:
I am creating a class to connect to Microsoft Word using VC++ 6.0
ClassWizard
and the object library MSWORD.OLB.

Most of the function calls in this class use the Varient type to pass
parameters, but I cannot find the actual values for the enumeration types
so
I can pass in that value. Does anyone know how or where these enumeration
types are defined.

For example, WdUnits is composed of wdCharacter, wdWord, wnSentence, etc.

Open the VBA editor within Word, by pressing Alt-F11

Press F2 to bring up the Object Browser

Type the term you want into the search box and press Enter


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
J

Jay Freedman

Open the VBA editor in Word, and press F2 to open the Object Browser. Search
for and select any enumeration you're interested in. Select a member of the
enumeration, and the value of the constant will appear at the bottom of the
window.

I don't know of any place where the values are simply listed the way they
would be in an include file -- presumably the Office development team has
such an include, but AFAIK they don't release it.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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