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.
This topic is 11 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
samuelz
Posts: 14
Last visit: Tue Nov 25, 2014 12:13 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: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 20
Been upvoted: 37 times

access COM enums in VBScript

Post by Alexander Riedel »

Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 11 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked