[AccessD] Word constant list for VBA

Gustav Brock Gustav at cactus.dk
Fri Feb 22 01:30:07 CST 2008


Hi Stuart

Very clever!

/gustav

>>> stuart at lexacorp.com.pg 22-02-2008 00:08 >>>
I've got a little "Com Browser" utility that comes with PowerBasic 

"The PowerBASIC COM Browser is an application that exposes the Interfaces, 
Methods and Properties of COM Objects, as described by type-library files. The 
PowerBASIC COM Browser serves a dual purpose - to export an Interface Structure 
of a COM Object for early-binding purposes in your PowerBASIC code, and to 
provide syntax reference and context-help on the Interface members exposed by a 
COM Object."

I've just run it on my "Microsoft Word 10.0 Object Library 8.2" and extracted the 2674 
enumerations to a text file - only a few seconds work.  It took another 30 seconds with a good 
text editor using Find/Replace to turn the whole file into a set of Const Public declarations 
suitable for use in VBA.

I've uploaded it to http://www.lexacorp.com.pg/Misc/WordEnums.zip 

Enjoy,
Stuart


On 21 Feb 2008 at 13:28, jwcolby wrote:

> Does anyone have a good reference or better yet a module of word constants
> for use in VBA?
> 
> I need things like 
> 
> const wdSaveChanges = SomeValue
> const wdPromptToSaveChanges = someothervalue
> etc
> 
> John W. Colby
> Colby Consulting
> www.ColbyConsulting.com 





More information about the AccessD mailing list