It might be necessary to execute win32com\servers\interp.py to register the object (which inturn might not work if you installed Python without admin privs or selected "just for me")
Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Johnson Sent: Tuesday, 5 February 2008 10:23 AM To: Tim Golden Cc: python-win32@python.org Subject: Re: [python-win32] Reading .py or .pyc from an excel sheet My machine doesn't seem to recognize Python.Interpreter. Is there some prerequisite that I could be missing? On Feb 4, 2008 1:21 AM, Tim Golden <[EMAIL PROTECTED]> wrote: Pallavi Apotikar wrote: > I am sorry, instead of "file", I should have said "a python function". > > Is it possible to access/use a python function from Excel VB Editor e.g. a > library function called "eval()" is used to detect whether the > expression/datatype is a valid python expression/datatype ? Can we do > that? Well as far as I can see, there's nothing to stop you instantiating a Python interpreter via COM from Excel (class name is "Python.Interpreter") and then use .Eval or .Exec to do things. I'm not sure just how much this will buy you, but it should at least be possible. TJG _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32 -- _____________________ Ceci n'est pas un email.
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32