0

I can create an instance of Excel using:

Microsoft.Office.Interop.Excel.Application gXlApp = new Microsoft.Office.Interop.Excel.Application();
        gXlWb= gXlApp.Workbooks.Add(Missing.Value);
        gXlApp.Visible = true;
        gXlApp.DisplayAlerts = false;

BUT is there a way to "point" gXlApp at an instance of Excel that is already open?

Currently I have to start Excel from c# then open the workbook and run my code.

ManInMoon
  • 6,795
  • 15
  • 70
  • 133

0 Answers0