Solved

Excel user defined function tooltip, or help documentation to hint user what to input

Posted on 2015-02-12
5
1,442 Views
Last Modified: 2015-02-24
Experts,

Here is classic problem with User Defined Function in Excel. How do you solve the problem of letting user know what to input in a UDF, how many arguments, what argument do what, any optional argument, etc.?

I read it somewhere that to have a tooltip for UDF is not easy. What about some kind of help that will pop up when we invoke the UDF, or anything that will hint user when they use the function at the first instance in a Excel section.

Any idea will help.
Thanks,
RDB
0
Comment
Question by:ResourcefulDB
  • 3
  • 2
5 Comments
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 40607064
You can use the Application.MacroOptions method to add a description and such to a UDF. Note though that ArgumentOptions is only available in XL2010 and later.
0
 

Author Comment

by:ResourcefulDB
ID: 40607156
I use office 2010, so it should have that feature.

Where can be a good place to find examples of this ArgumentOptions?

What does this application.macrooptions do? I use Excel buildin function, such as worksheetfunction before, such as worksheetfunction.max, what is this application? Is it the same as worksheetfunction?

Thanks,
RDB
0
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points
ID: 40607168
ArgumentOptions accepts an array of descriptions for each of your arguments. Those descriptions can be whatever you want. A good article on it's usage is here.

MacroOptions does what you asked for. It allows you to assign descriptions that are visible when you use the Insert Function dialog.

"Application" refers to the Excel application.
0
 

Author Comment

by:ResourcefulDB
ID: 40609956
Got you.

How is this "application" different than worksheetfunction?

Is there a place to find out what functions this application have? such as application.macroOptions?

Thanks,
RDB
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 40610183
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question