

> : Exception has been thrown by the target of an invocation. Runtime.CannotCreateStartupObjectException: Could not create an instance of startup object ReCreateEmpty.ReCreateEmpty in assembly ReCreateEmpty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. However, whenever I try to run this, a new Excel Workbook is opened and the following error is given: An add-in could not be found or could not be loadedĬould not create an instance of startup object ReCreateEmpty.ReCreateEmpty in assembly ReCreateEmpty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. This is the code I've come up with: Dim BillingCalender As String = *Path to Excel Workbook*ĭim xlsApp As Excel.Application = New Excel.Applicationĭim xlsWorkBooks As Excel.Workbooks = xlsApp.Workbooksĭim xlsWB As Excel.Workbook = xlsWorkBooks.Open(BillingCalender) I'm trying to write some Visual Basic code in Visual Studio 2012 that will be able to open and make changes to an existing Microsoft Excel workbook (Office 2010).
