Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2015-02-12
5
1,520 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

828 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