I have created custom object in Python using pywin32. while calling that object takes some times. Following is my try at making that asynchronous with respect to application stat so that while macro is running application doesn't freez.
Sub demo()
demofunction
End Sub
Function demofunction()
Dim demoobj As Object
Do While demoobj Is Nothing
DoEvents
Set demoobj = CreateObject("Python.DemoObj")
Loop
Debug.Print demoobj.Hello
End Function
Obviously the code is not working in terms of asynchronous run. Is this even possible any how?
Above code however working fine while freezing the application for a while.