the problem was that i had never installed python on my workstation.
just had a Python25 folder with a batch-file that was adjustin the
PATH and executing %PYTHONHOME%python.exe
installed Python properly and now everything works fine
--
http://mail.python.org/mailman/listinfo/python-list
On 10 Dez., 11:52, "Michel Claveau -
MVP" wrote:
> Hi !
>
> Warning with lower/uppercases!
> Try to make two versions of your methods (ex.: "add" & "ADD"), for study.
>
> @+
> --
> MCI
The error comes already at the first line of Excel/VBA code:
Set ex = CreateObject("MyPython.Example")
rgds,e
On 10 Dez., 11:52, "Michel Claveau -
MVP" wrote:
> Hi !
>
> Warning with lower/uppercases!
> Try to make two versions of your methods (ex.: "add" & "ADD"), for study.
>
> @+
> --
> MCI
The error comes already at the first line of Excel/VBA code:
Set ex = CreateObject("MyPython.Example")
rgds,e
Hi !
Warning with lower/uppercases!
Try to make two versions of your methods (ex.: "add" & "ADD"), for study.
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
I ran this script:
---
class Example(object):
_public_methods_ = ['Add','Mul']
_reg_progid_ = 'MyPython.Example'
_reg_clsid_ = '{E39ECD8C-7FAF-48B0-B914-1202319499D4}'
def Add(self,a,b): return a+b
def Mul(self,a,b): return a*b
if __name__ == '__main__