The code you show should work, and does work right on my machine.
Is this the whole project, or perhaps embedded in an existing add-in where you are doing explicit registration processing in your AutoOpen()?
The new extended registration support works as long as you don’t have ‘ExplicitRegistration’ enabled in the project or .dna file (if you have a .dna file – you shouldn’t need one anymore – it’s auto-generated by the build).
You should be able to remove the two “ExcelDna.Registration****” packages, as well as “ExcelDna.Integration”.
Then for the IntelliSense to work you need something like this:
Imports ExcelDna.Integration
Imports ExcelDna.IntelliSense
Public Class MyAddIn
Implements IExcelAddIn
Public Sub AutoOpen() Implements IExcelAddIn.AutoOpen
IntelliSenseServer.Install()
End Sub
Public Sub AutoClose() Implements IExcelAddIn.AutoClose
IntelliSenseServer.Uninstall()
End Sub
End Class
I then get:
-Govert
From: exce...@googlegroups.com <exce...@googlegroups.com> On Behalf Of SJ Rhi
Sent: 17 July 2025 10:19
To: Excel-DNA <exce...@googlegroups.com>
Subject: [ExcelDna] ExcelDna 1.9.0-rc3: Issues with ParamArray in VB.NET UDFs
Hi Govert,
I'm experiencing some unexpected behavior with ParamArray when developing Excel UDFs using ExcelDna 1.9.0-rc3. I installed the NuGet packages and am trying to use a ParamArray as shown in the sample code below, but it doesn't seem to be working as expected.
1. When I enter a third argument (e.g., =DnaAddValues(1, 2, 3, 4) ), Excel treats it as a #VALUE! error, and this argument is not passed to the UDF.
2. The function only seems to work correctly when the second argument is explicitly an array (e.g., =DnaAddValues(1, {2, 3, 4}) )
3. IntelliSense doesn't display help for the third argument onwards, even though it should be part of the ParamArray.
--
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 visit https://groups.google.com/d/msgid/exceldna/56ad1eae-94ec-4e19-82ba-ce91331f2996n%40googlegroups.com.
Thank you for the reply.
As you suggested, I removed the two Registration packages and the Integration package,
disabled the <ExplicitRegistration> option,
and finally removed the RegisterFunctions process.
I've confirmed that it's now working correctly.
I need to use multilingual descriptions for UDFs,
so I have to apply descriptions with RegisterFunctions depending on the language environment.
Is there a way to do this?