Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default tip text for user defined worksheet functions

Does anybody know how to have tip text shown for each parameter of
user-defined worksheet functions? For instance, I have the following function
in a module:

Public Function KAK(Ind As Double, Lb As Double, Ub As Double, _
Avr As Double) As Variant
If Avr = 1 Then
KAK = (Log(Ub - Lb) - Log(Ub - Ind)) / Log(Ub - Lb)
ElseIf Avr 0 And Avr < 1 Then
KAK = ((Ub - Lb) ^ (1 - Avr) - (Ub - Ind) ^ (1 - Avr)) _
/ ((Ub - Lb) ^ (1 - Avr))
End If
End Function

I want to display tip texts, so that when the user types "=KAK(" in a cell,
the tip text would display "Indicator" in bold, reminding her of what
parameter is required first, then after the first comma is entered "Lower
bound" would be shown or turn bold, then "Upper bound" and so on.

Thanks in advance for your help!

Rafael


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default tip text for user defined worksheet functions

It isn't really supported for UDF's written in VBA, but look he

http://xcell05.free.fr/

http://www.jkp-ads.com/Articles/RegisterUDF00.htm
http://www.dailydoseofexcel.com/arch...on-with-excel/

--
Regards,
Tom Ogilvy


"Rafael Guerreiro Osorio" wrote:

Does anybody know how to have tip text shown for each parameter of
user-defined worksheet functions? For instance, I have the following function
in a module:

Public Function KAK(Ind As Double, Lb As Double, Ub As Double, _
Avr As Double) As Variant
If Avr = 1 Then
KAK = (Log(Ub - Lb) - Log(Ub - Ind)) / Log(Ub - Lb)
ElseIf Avr 0 And Avr < 1 Then
KAK = ((Ub - Lb) ^ (1 - Avr) - (Ub - Ind) ^ (1 - Avr)) _
/ ((Ub - Lb) ^ (1 - Avr))
End If
End Function

I want to display tip texts, so that when the user types "=KAK(" in a cell,
the tip text would display "Indicator" in bold, reminding her of what
parameter is required first, then after the first comma is entered "Lower
bound" would be shown or turn bold, then "Upper bound" and so on.

Thanks in advance for your help!

Rafael


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default tip text for user defined worksheet functions

Many thanks Tom, having the arguments' description on the Insert Function
dialog for sure will be enough.

Best,

Rafael

"Tom Ogilvy" wrote:

It isn't really supported for UDF's written in VBA, but look he

http://xcell05.free.fr/

http://www.jkp-ads.com/Articles/RegisterUDF00.htm
http://www.dailydoseofexcel.com/arch...on-with-excel/

--
Regards,
Tom Ogilvy


"Rafael Guerreiro Osorio" wrote:

Does anybody know how to have tip text shown for each parameter of
user-defined worksheet functions? For instance, I have the following function
in a module:

Public Function KAK(Ind As Double, Lb As Double, Ub As Double, _
Avr As Double) As Variant
If Avr = 1 Then
KAK = (Log(Ub - Lb) - Log(Ub - Ind)) / Log(Ub - Lb)
ElseIf Avr 0 And Avr < 1 Then
KAK = ((Ub - Lb) ^ (1 - Avr) - (Ub - Ind) ^ (1 - Avr)) _
/ ((Ub - Lb) ^ (1 - Avr))
End If
End Function

I want to display tip texts, so that when the user types "=KAK(" in a cell,
the tip text would display "Indicator" in bold, reminding her of what
parameter is required first, then after the first comma is entered "Lower
bound" would be shown or turn bold, then "Upper bound" and so on.

Thanks in advance for your help!

Rafael


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
Using user defined workbook name in macro worksheet functions Mark Excel Programming 0 April 6th 05 06:11 PM
User Defined Functions - Help Text - Make it Easy for the User Andibevan[_2_] Excel Programming 4 March 17th 05 09:51 AM
User Defined Worksheet Functions? Brad Excel Programming 2 February 18th 04 07:23 PM
User defined worksheet functions kevin[_2_] Excel Programming 1 September 4th 03 09:08 PM
User defined functions - text for formula palette Tom Ogilvy Excel Programming 0 July 8th 03 02:35 PM


All times are GMT +1. The time now is 12:21 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"