Call was rejected by callee in win32com if a dialog box is open or excel is otherwise waiting for the user
问题 I need to determine if Excel is ready to accept a COM object from win32com in Python. For instance if a dialog box is open in excel, any call to a win32com function will cause a 'Call was rejected by callee' error. Through trial and error I have found that if Excel ( actaully I assume any Office product ) has a dialog box open, any call to win32com will result in an error. After quite a bit of googling I have found many questions about what amounts to self inflicted dialog boxes being open. i