User Defined functions tooltip

rakesh5883

Board Regular
Joined
Oct 2, 2009
Messages
52
I have created my own function in Excel. But, now if someone use that formula in the sheet. I need to get the tooltip which we generally get with formulas like ex : =Average( (we get a yellow tooltip ). How do i make that appear for User Defined Functions.
Please help.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
can you post your function
 
Upvote 0
CallOption(UnderlyingPrice, ExercisePrice, Time, Interest, Volatility, Dividend). I want tooltip to come if someone types CallOption(. I hope iam clear enough. Ined the yellpw thing to appear.
 
Upvote 0
You can't. (Unless you are using 2010 which I think now has this ability, but I can't be sure offhand)
 
Upvote 0
1) Although it isn't what you asked, you CAN add a description that has this information in it using the ALT-F8 window. Press Alt-F8, type in the name of your function (it probably won't appear in the list), click on OPTIONS and put in your help text.

2) The Intellisense ToolTip that appears while typing in the cell, there is no easy way to do it, it was simply not included in the VBA options.

I have seen a hack that lets you highjack a seldom used function and reorient its intellisense for your function, but it is a hack, and not something I would do.
 
Upvote 0
I have created my own function in Excel. But, now if someone use that formula in the sheet. I need to get the tooltip which we generally get with formulas like ex : =Average( (we get a yellow tooltip ). How do i make that appear for User Defined Functions.
Please help.
I've been searching for the answer to that and everything I have found (including from a Microsoft Expert) is that you can't create an actual tooltip at this time -- though Microsoft is talking about making this available.

However, you've been able to create a module description and function description for a long time and this information is shown in the Insert Function and Function Arguments dialog boxes [fx].

To do this part you get into the VBA editor and press F2 for the Object Browser. Select VBAProject from the first dropdown. Then right-click your class(es), select Properties, and enter & save a description for the class. Repeat that process for each member of your class. These are saved as hidden properties in your module (which you can see if you export the module and use Notepad to view the text file).

Then, at least as of Excel 2010, you can now also create argument descriptions and those will also be shown in the Insert Function and Function Arguments dialog boxes [fx]. The following is an example subroutine you can create in your module to describe each member's arguments.

Code:
Sub DescribeArguments()
' One-time execution just to describe arguments for user-defined functions.
    Dim FuncName As String, Category As String, ArgDesc(1 To 4) As String
'
    FuncName = "CountByColor"
    ArgDesc(1) = "The reference cell for selection color."
    ArgDesc(2) = "The range of cells to count or sum."
    ArgDesc(3) = "Boolean 'true' to select by font color, or 'false' to select by cell color (default)."
    ArgDesc(4) = "Boolean 'true' to sum selected cell values, or 'false' to just count the selected cells (default)."
'
    Application.MacroOptions _
        Macro:=FuncName, _
        ArgumentDescriptions:=ArgDesc
'
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top