This is my first question and I'm horribly scared my answer could already be on some other post. But I've searched for hours and I really can't get my head around it.
So here's the thing.
I'm working on a windows form that, very simplistically, has to open certain workbooks and run macros inside these workbooks.
The macros in these workbooks use certain functions that do not belong to standard excel libraries. I work in a bank and we have some proprietary functions and add-ins which are loaded every time we open certain exe files.
I can launch an excel application through:
Microsoft.Office.Interop.Excel.Application xlApp =
new Microsoft.Office.Interop.Excel.Application();
but this calls the normal
excel. How can I add the libraries I need in this specific instance of excel?
The alternative solution is to launch excel with the libraries manually, using
System.Diagnostics.Process.Start("CMD.exe","My fancy excel");
but this takes a huge amount of time, as a new instance has to be created for each workbook.
Any thoughts or clarifications needed?
Thank you all for your time, hope I was clear enough!