Office COM automatisation - calling python from VBA

Do Re Mi chel La Si Do enleverlesO.OmcO at OmclaveauO.com
Fri Jun 24 16:34:06 EDT 2005


Hi !


Perso, j'utilise ça  (VBA) :

        Sub TestPonx()
              Dim oa As Object
              Set oa = CreateObject("Ponx.Mci")
              Cells(2, 4) = oa.PRet("123+45+6")
              Set oa = Nothing
            End Sub


"Ponx.Mci" est le nom du serveur COM Python
PRet()  est équivalent à  eval()


Michel Claveau









More information about the Python-list mailing list