Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Constants from Excel?

Thread Tools

Constants from Excel?

Tim Roberts
Posts: n/a
I've done a lot of COM work from Python, including control of the Office
applications. However, I have a question that I've never been able to

Is there a way to programmatically fetch the values of COM constants? For
example, in my Excel apps, I have a section like this, that I have gleaned
from multiple Google posts:

xlPortrait = 1 # orientation constants
xlLandscape = 2
xlWKS = 4 # SaveAs format constants
xlExcel9795 = 43
xlHAlignRight = -4152
xlHAlignCenter = -4108

This works, but it'd be nicer to create an instance of, say,
Excel.Constants and pull the values from there.
- Tim Roberts, Removed)
Providenza & Boekelheide, Inc.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Generic and constants Maki VHDL 11 11-25-2004 06:09 PM
Big integer constants Hal Murray VHDL 5 11-12-2004 03:13 PM
Range constants? Tim Hubberstey VHDL 2 06-29-2004 05:10 PM
Seperate file to hold constants?? kwaj VHDL 2 03-04-2004 06:42 AM
constants declaration Benjamin Todd VHDL 2 02-15-2004 01:49 PM