[python-win32] help with python COM server needed
Tim Roberts
timr at probo.com
Mon Oct 6 19:57:41 CEST 2008
aivars wrote:
> this is how I call it from VB:
>
> Sub testPython()
>
> Dim a
> Dim response
>
> Set a = CreateObject("Aivars.ReturnSaldo")
> response = a.ReturnAmount() '--->error here
>
> Worksheets("Sheet1").Range("a1").Value = response
> End Sub
>
Function calls in VB with no parameters don't use parens. I think you
want this:
response = a.ReturnAmount
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list