How to compile a Python module to dll and call it in VBA
<p>I want to create a user defined function written in Python. Then I want to compile it to a dll, and distribute it and call in EXCEL vba on another computer which doesn't have python installed.</p>

<p>For example, I want to create a function in Python:</p>

<p>def add(a,b):
   return a+b</p>

<p>Then, compile it and export it as a dll. On another computer without Python, I can to import this function in EXCEL vba and use it. How to do it?</p>

<p>Thanks,</p>