问题
I have some UDFs in an XLAM file. Intellisense doesn't seem to pickup these UDFs when the XLAM is installed as an add-in. The UDFs themselves work fine in Excel, its just that they don't appear in intellisense. Here I mean intellisense when used on a worksheet.
回答1:
There (is) was no way of getting a UDF (VBA, XLL etc) to supply intellisense. This has often been suggested to the Excel team as a worthwhile improvement.
(see https://fastexcel.wordpress.com/2016/10/07/writing-efficient-vba-udfs-part-15-adding-intellisense-to-your-udfs/)
回答2:
With the Excel-DNA IntelliSense extension you can add in-sheet IntelliSense for your VBA-based UDFs (as well as .xll-based UDFs from Excel-DNA, PyXLL or one of the C/C++ toolkits).
The announcement and discussion of the IntelliSense extension is here: https://excel-dna.net/2016/11/24/excel-udf-intellisense-for-excel-dna-and-vba/
A detailed write-up on adding in-sheet IntelliSense to a VBA project (by Charles Williams) can be found here: https://fastexcel.wordpress.com/2016/10/07/writing-efficient-vba-udfs-part-15-adding-intellisense-to-your-udfs/
来源:https://stackoverflow.com/questions/7760657/how-can-i-get-intellisense-to-work-for-udfs-in-xlam-files