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
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Wed Feb 20, 2013 12:16 pm

access COM enums in VBScript

Post by samuelz »

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: 7376
Joined: Tue May 29, 2007 4:43 pm

access COM enums in VBScript

Post by Alexander Riedel »

Alexander Riedel
SAPIEN Technologies, Inc.

Locked