Currently we have a remote box executing a console application.
This console executes various Excel macros - these macros are in Excel 2010
files - and the remote box has Excel 2010
installed.
I now have Excel 2013
on my PC and have added some features to one of our xl files. This is not running via the console.
The console has a reference to Microsoft.Office.Interop.Excel 14.0.0.0
and within the Program I use the following:
using Excel = Microsoft.Office.Interop.Excel;
...
...
Excel.Application excelApp = null;
...
...
excelApp = new Excel.Application();
I believe this will need to change. Hopefully I'm reading @HansPassant (ref: Can I still use Microsoft.Office.Interop assemblies with office 2013?) correctly but I'll need to:
- Drop the reference to
Microsoft.Office.Interop.Excel v14.0.0.0
- Add a reference to
Microsoft Excel 15.0 Object Library v1.8
If I make this change will the console be able to run macros in both Excel 2010
and Excel 2013
files?
How will the above code snippet change once I move from interop
to this COM
reference?