Marius.Cotor

I have a VSTO application in excel (document workbook). If I have a excel file open and I want to open my application (double click of my excel file), my application is open is same Excel.Application with first file.. How can make to open my file in another excel application





Re: Visual Studio Tools for Office open file in another application

Cindy Meister

By design, Office applications are designed to open multiple files in the same instance. You could try doing what you describe by using code (VBA would do it) that starts a new instance and loads the document. Example:

Dim xlApp as Excel.Application

Set xlApp = CreateObject("Excel.Application")
xlApp.UserControl = true
xlApp.Visible = true
xlApp.Workbooks.Open "Drive:\path\workbook.xls"