Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

863 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

28 Experts available now in Live!

Get 1:1 Help Now