Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Addin UDF Registration/Declaration

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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Addin UDF Registration/Declaration

Read this:

http://www.jkp-ads.com/articles/RegisterUDF00.asp

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Faraz Ahmed Qureshi" wrote in
message ...
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!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Addin UDF Registration/Declaration

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" wrote in
message ...
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!



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Addin UDF Registration/Declaration

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" wrote in
...



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 -


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Addin UDF Registration/Declaration

The main advantage is overcoming the 255 limit. I'm (almost) sure you will
not have included more than a combined total of 255 for all the descriptions
in a single UDF.

As you say the method is a development of Laurent Longre's, it's an absolute
mystery to me as to how Jurgen Volkerink (KeepItCool) got it to work!

If anyone's interested the approach can also be adapted to work with UDFs in
an Automation Addin though there's no way to avoid duplicate entries in the
function wizard.

FWIW the code example can be considerably simplified, once you've got your
head round it!

Regards,
Peter T



"Andrew" wrote in message
...
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" wrote
in
...



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 -






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Addin UDF Registration/Declaration

PS, forgot to add,

One thing I like about this approach is that you don't have to
overwrite functionality of any existing dll functions.


The functionality of the 'borrowed' functions is not overwritten, but it's
worth not using the named ones in the example in case any one else uses them
for the same purpose in the same system. That might in theory be an
advantage of Laurent's dll, assuming of course no one else's app is not
using the same dll (hmm not sure if that's a potential issue or not, I
haven't used his in so long).

Peter T

"Peter T" <peter_t@discussions wrote in message
...
The main advantage is overcoming the 255 limit. I'm (almost) sure you will
not have included more than a combined total of 255 for all the
descriptions in a single UDF.

As you say the method is a development of Laurent Longre's, it's an
absolute mystery to me as to how Jurgen Volkerink (KeepItCool) got it to
work!

If anyone's interested the approach can also be adapted to work with UDFs
in an Automation Addin though there's no way to avoid duplicate entries in
the function wizard.

FWIW the code example can be considerably simplified, once you've got your
head round it!

Regards,
Peter T



"Andrew" wrote in message
...
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"
wrote in
...



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 -






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Addin UDF Registration/Declaration

According to his help file if you need to register more than 200
functions you can create a second copy of the dll and start over again
so on that basis I assume there wouldn't be a conflict with someone
elses app.

I'll have to have another look at the number of characters but
definately the Stephen Bullen method (from the CD in the book) kicked
me out because my descriptions were too long and so far no problem
with Laurents dll in that regard.

Thanks,
Andrew

On 30 Apr, 16:30, "Peter T" <peter_t@discussions wrote:
PS, forgot to add,

One thing I like about this approach is that you don't have to
overwrite functionality of any existing dll functions.


The functionality of the 'borrowed' functions is not overwritten, but it's
worth not using the named ones in the example in case any one else uses them
for the same purpose in the same system. That might in theory be an
advantage of Laurent's dll, assuming of course no one else's app is not
using the same dll (hmm not sure if that's a potential issue or not, I
haven't used his in so long).

Peter T

"Peter T" <peter_t@discussions wrote in message

...



The main advantage is overcoming the 255 limit. I'm (almost) sure you will
not have included more than a combined total of 255 for all the
descriptions in a single UDF.


As you say the method is a development of Laurent Longre's, it's an
absolute mystery to me as to how Jurgen Volkerink (KeepItCool) got it to
work!


If anyone's interested the approach can also be adapted to work with UDFs
in an Automation Addin though there's no way to avoid duplicate entries in
the function wizard.


FWIW the code example can be considerably simplified, once you've got your
head round it!


Regards,
Peter T


"Andrew" wrote in message
....
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"
wrote in
...


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 -- Hide quoted text -


- Show quoted text -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Excel addin versions having LaodBehaviour issue at Addin Dwipayan Das Excel Programming 0 April 17th 09 05:51 AM
setup project for Excel addin, won't register addin Gerry Excel Programming 0 October 31st 07 12:01 AM
Removing an Addin from the Tools Addin list. Trefor Excel Programming 2 August 25th 06 04:45 PM
Unshimmed Automation Addin and Shimmed COM Addin in same App Domai Brandon Excel Programming 0 June 27th 06 11:18 PM
Remove Excel AddIn from AddIn List !! Help carl Excel Programming 2 December 8th 03 03:36 PM


All times are GMT +1. The time now is 10:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"