Solved

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

Posted on 2015-02-12
5
1,802 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
[X]
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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

632 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