What about using XMLRPC and run the Python code in an Environnment that does support Python (like Zope or an other webbased framework supporting XMLRPC)? There are good .NET clients that can be used for Excel Extensions in VB.net or C#
-----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Patrick ARNOULD Gesendet: Donnerstag, 6. November 2008 17:11 An: activepython@listserv.ActiveState.com Betreff: How to run Python script in Excel/vba environment Hi, I would like to resuse a Python script in Excel2003 environment, so I try to develop a vba function to call this Python script function. I found the following example but unfortunately the 'python' language is not recognize in my excel environment. Global sc As New MSScriptControl.ScriptControl Public Function os_getcwd() sc.Language = "python" sc.ExecuteStatement ("import os") os_getcwd = sc.Eval("os.getcwd()") End Function With this you can set your Excel formula to =os_getcwd() (http://www.velocityreviews.com/forums/t319222-re-python-in-excel.html) Do you have any idea how I could enable the python langage in a WindowsXP environment for Excel/VBA? Best regards, Patrick _______________________________________________ ActivePython mailing list ActivePython@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython _______________________________________________ ActivePython mailing list ActivePython@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython