[python-win32] Office constants

Simon Brunning simon.brunning at gmail.com
Tue Jun 21 12:05:45 CEST 2005


On 6/20/05, Hughes, Chad O <chad.hughes at pnl.gov> wrote:
>  
> 
> Is there a module that contains all of the constants for office (for
> example: xlRight, olOpen, and wdMAPI) in the pywin32 Windows extensions?  I
> have created my own modules for these constants but I would rather use the
> pywin32 extensions if possible. 

>>> import win32com.client
>>> excel = win32com.client.gencache.EnsureDispatch("Excel.Application")
>>> win32com.client.constants.xlRight
-4152

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/


More information about the Python-win32 mailing list