I've been playing with this recently as well, using the FunCustomize
example on Laurent Longre's website,
http://xcell05.free.fr/english/index.html
I would be interested to know the relative merits of the two
approaches (I realise both are a variation on the same idea).
Laurent's method provides a dll and the only vb code there is is to
install the dll and pass a range with the UDF properties to it (and
uninstall when the add-in closes). It looks comparatively simple. I
presume somehow the dll then registers dummy functions using that
data. One thing I like about this approach is that you don't have to
overwrite functionality of any existing dll functions. The help file
mentions the 255 character limit but this must only apply to each
individual description as I'm sure the total string length for each of
my functions exceeds 255 characters. I guess it means an extra file
to distribute which could be a disadvantage but the functions I'm
working with all require additional data files anyway.
Cheers,
Andrew
On 30 Apr, 13:41, "Peter T" <peter_t@discussions> wrote:
> It's not straight forward at all, but it can be done (not tooltips though)
>
> http://www.jkp-ads.com/articles/RegisterUDF01.asp
>
> Regards,
> Peter T
>
> "Faraz Ahmed Qureshi" <FarazAhmedQure...@discussions.microsoft.com> wrote in
> messagenews:B5447321-57FD-46EC-B9AA-(E-Mail Removed)...
>
>
>
> > Any guidance as to how to have a UDF in an addin be declared/registered
> > etc.
> > so as to be used like all other usual/normal functions? like be
> > autocompleted
> > upon partial entry, arguments be displayed in the supertip and be capable
> > to
> > be used in the Conditional Formatting and other features?
>
> > --
> > Thanx in advance & Best Regards,
>
> > Faraz!- Hide quoted text -
>
> - Show quoted text -