From: Li Chen Date: 2006-12-01T23:43:23+09:00 Subject: Re: How to get value of constants in Excel using WIN32OLE Jan Svitok wrote: > On 12/1/06, Li Chen wrote: >> which is so inefficient! >> >> WIN32OLE.const_load(excel, Excel_Const) >> end >> "Excel_Const::Xl3DArea" >> >Exit code: 0 > See programming ruby, especially the chapter on reflection. THe > interesting methods are: Module#constants, Module#const_get Thanks Jan. I haven't touch this chapter yet but I will take a look at them. BTW could you browse my last post about "VBA to Ruby code again"? I change every constants into the required format and Ruby still complains the script. Li -- Posted via http://www.ruby-forum.com/.