But this is v.0.35.4-beta4
When I have plugged in the addin and then restart Excel
I get an exception
Could not load file of assembly 'ExcelDna.loader' or one of its dependencies.
When I add the addin after this popup again
The addin works it executes the
AutoOpen method of the addin like it should be .
I close the Excel I have the same load exception
Need to add the addin again and then ok
And do one ...
Any ideas ??
Microsoft.offuce.interop.excel 15....
Microsoft.Vusualbasic 10.3.0
Framework .net 4.6.1
Exit code 1 from Exceldnapack.exe
The Excel dom accessibility is not supported was indicated by Add-In Express support and they advised me to do a comaddin
In my quest I encountered the IExcelAddIn interface supported by your nuggets
I cleaned up the package s but I am forced to use a beta version
And the class is able to access the range
I am here with a little conflict
I will try further today
I apparently need your beta nuggets
In AutoOpen()
Try
{
ObjApp=System.Runtime.InteropServices.Marshal.GetActiveObject
("Excel.Application") as Microsoft.Office.Interop.Excel.Application;
}
catch (Exception ex)
{
Message of.Show ...
}
I could try to put this code somewhere else ( another class ) until the moment
The worksheet has loaded and all its addins
And then execute this code at a strategic moment.
But I am not proficient enough to determine the best strategic moment to call this
THIS COULD BE
+++++++++++++
After the work book has been loaded
and all its addins But what event is that
An event that gives me the possibility to give me the application object
The rest is like you described in the document I have an xll and so an excel-dna addin
If I exclude this MainAddin class no problem ( obvious he is not looking for its own Excel application instance )
Hope you can help
Thanks
Do you have a basic Excel-DNA add-in with a simple function working?
What are you then trying to do which is not working?
-Govert
________________________________________
From: exce...@googlegroups.com [exce...@googlegroups.com] on behalf of ohmyg...@gmail.com [ohmyg...@gmail.com]
Sent: 20 September 2018 11:10 AM
To: Excel-DNA
Subject: RE: [ExcelDna] Re: Issue "Could not load file or assembly 'ExcelDna.Loader'" reproduced on two x64 machines
In AutoOpen()
--
Gives an exception
My purpose was to read from db , populate a cell range and create a validating combobox
Which seems not possible in excel-dna.
Regards
How do I get the code to you
For your scenario you would make a ribbon button or macro with shortcut key, and in there you can access to the full object model like in VBA. Use "ExcelDnaUtil.Application" to get hold of the root Application object.
-Govert
________________________________________
From: exce...@googlegroups.com [exce...@googlegroups.com] on behalf of ohmyg...@gmail.com [ohmyg...@gmail.com]
Sent: 24 September 2018 09:27 AM
To: Excel-DNA
Subject: RE: [ExcelDna] Re: Issue "Could not load file or assembly 'ExcelDna.Loader'" reproduced on two x64 machines
Assigning a value gives an exception
Gives an exception
Regards
--