access COM enums in VBScript

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
samuelz
Posts: 14
Joined: Wed Feb 20, 2013 12:16 pm

access COM enums in VBScript

Post by samuelz » Thu Feb 21, 2013 6:12 pm

COM objects usually come with classes and enums, in VBScript, you can access COM classes using CreateObject() or GetObject(); how can one access enums?
For example, how do you access "XITickMark.xlTickMarkCross" in "Excel.Application" using VBScript? this can be done easily in VB or C#.
thanks.

User avatar
Alexander Riedel
Posts: 6906
Joined: Tue May 29, 2007 4:43 pm

access COM enums in VBScript

Post by Alexander Riedel » Thu Feb 21, 2013 6:39 pm

Alexander Riedel
SAPIEN Technologies, Inc.

Locked