Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

OLB enum values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phil - 02 Aug 2006 16:59 GMT
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
Jonathan West - 02 Aug 2006 17:45 GMT
>I am creating a class to connect to Microsoft Word using VC++ 6.0
>ClassWizard
[quoted text clipped - 7 lines]
>
> 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

Signature

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

Jay Freedman - 02 Aug 2006 17:57 GMT
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.

Signature

Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> I am creating a class to connect to Microsoft Word using VC++ 6.0
> ClassWizard and the object library MSWORD.OLB.
[quoted text clipped - 10 lines]
>
> Phil
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.