Hi Robert,
Excel-DNA indeed lets you make add-ins that don’t have the problem with the paths. Internally Excel stores the function names from .xll add-ins without extra information, so the add-in and sheets using it are easy to distribute .
It should also not be too hard to port your VBA code to VB.NET, and I’m happy to help if you want to give it a try.
However, Excel-DNA does not support the Mac at all, and there is no workaround for this.
So you’ll have to decide how firm a constraint this is.
-Govert
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/8e2b48bc-237c-4e39-8706-d9a0a4326d5cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/044101d77240%241226e010%243674a030%24%40gmail.com.
Hi Robert,
So so that I have some idea of where you’re starting – have you made a simple Excel-DNA add-in with a tiny function to test?
If not, I suggest you Install Visual Studio: Tutorials/InstallVisualStudio.md at master · Excel-DNA/Tutorials (github.com)
And then make your first VB.NET add-in: https://www.youtube.com/watch?v=UEIO2Q8HyD8&t=1678s
Once you’ve got that going, I see a few issues to discuss which appear in your specific function:
My suggestion would be to first make a simple function that avoids all of these issues, then address them one-by-one as needed.
A function which avoids these issues should work the same in VBA and VB.NET. So that would be a nice start for you.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/9095d963-f036-45d9-a425-ade8a7e9cc33n%40googlegroups.com.
Will give your suggestions a try.
I did install VSTO 2019, but used the wrong .NET version I think.
Looking forward to more feedback on the code.
I haven’t found a VBA “Max” function, which is why I’m using the worksheet function. I don’t make that much use of it, though I do use worksheet MMULT and MINVERSE a lot. I assumed Excel would be much more efficient than coding directly in VBA for that. Is that not the case?