ExcelDna icon indicating copy to clipboard operation
ExcelDna copied to clipboard

RunExcelDnaSetDebuggerOptions: open Excel file at launch

Open dubeg opened this issue 1 year ago • 2 comments

Isn't there a way to load the .xll & open an Excel file at the same time?

I usually add a template Excel file with which I develop my add-in, which I always open when debugging. If I understand RunExcelDnaSetDebuggerOptions correctly, it overrides the "Excel" profile on every build, so I can't just set add the Excel file to the commandLineArgs there.

So I'm left wondering how other people are doing it, if they are doing it.

dubeg avatar Feb 19 '24 16:02 dubeg

Ah, I guess that's still up for grabs: https://github.com/Excel-DNA/ExcelDna/issues/238

dubeg avatar Feb 19 '24 16:02 dubeg

If you set

    <RunExcelDnaSetDebuggerOptions>false</RunExcelDnaSetDebuggerOptions>

then the build should not interfere with your debug settings. You can then put both the .xll and your workbook in the command line arguments.

govert avatar Feb 19 '24 18:02 govert