Excel VSTO Workbooks.Open only working when another action is taken first
问题 I am working on a VSTO add-in. I have a customized ribbon, and on that ribbon a button called TemplateCallButton . I also have several other functions and buttons, one of which just opens a folder with templates (included as example). The TemplateCallButton only works and adds in a template file if one of the other actions has been completed (seemingly doesn't matter which one). After any other action has run then it works as expected. What's more frustrating is that this behavior only seems