Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

constants to decimal value

Status
Not open for further replies.

ScottGregory

Technical User
May 30, 2006
3
US
In Excel, is there a way to automatically convert VBA constants to their decimal values? e.g. xlCenter to -4108

Thanks for any help!
 

Yes, but it isn't entirely straightforward. You need to set a reference to the TypeLib library and use it's Object model to access Excel's. I don't have an example to hand but searching the site here - or Googling - should pick up something.

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

Professional Office Developers Association
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top