Application.COMAddIns Subscript out of range
问题 Following the sample case below https://msdn.microsoft.com/en-us/library/bb608614.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1 Run into a 'Subscript out of range' in Set addIn = Application.COMAddIns("ExcelImportData") New to VSTO and C#. How do I debug this? 回答1: If the add-in subscript is out of Range, it suggests that you've either made a typo in the name of the add-in while creating the VSTO project, or you've failed to open Excel using the debugger (which automatically loads the add