In ThisWorkbook Excel Object I have the following two subroutines:
Private Sub Workbook_Open()
MsgBox "Hello World"
Call call_DN
End Sub
Sub call_DN()
Application.COMAddIns("DataNitro.DataNitro").Object.RunScript ("test.py")
MsgBox "called sub"
End Sub
When I open the workbook I see the "Hello World" message box and then the "called sub" message box but the python script does not execute.
However, when I then manually run Workbook_Open() the python script does execute properly.
Why is the python script not executing upon application startup?
No error messages are being thrown - it seems that the .runscript command is just being ignored.