I've been stepping through the article "vba-to-vb.net-xll-add-in-with-excel-dna.pdf".
I created the project called TestPIA and the XLL from the bin folder works fine on the machine where it was created in both Excel 2010 and Excel 2016.
I have used exceldnapack.exe and it has created the packed XLL just fine and it too runs with both versions on Excel on this same machine. However, no matter how many configurations I have tried, it does not seem to load on other machines, whether they have XL2010, XL2013, or XL 2016. It *appears* as though it *may* have loaded on a machine with Excel 2003, but I can't be sure because earlier I tried to run the non-packed version and it ran fine and I'm not sure if that may have "prepared" the machine to handle the packed version.
Here is the contents of my TestPIA.dna:
<DnaLibrary Language="VB" RuntimeVersion="v4.0">
<ExternalLibrary Path="TestPIA.dll" Pack="true" />
</DnaLibrary>
I also set, in visual Studio, Embed Interop Types to True for Microsoft.Office.Interop.Excel.
When attempting to load on other machine, virtually nothing happens. Not even an error message.
If I manually load the XLL (as opposed to double-clicking), it appear to load just fine, as it appears in the list of add-ins, checked. But no menu item.
Tim