Solved

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

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now