Excel User Defined Functions

  • Thread starter Thread starter Barbara Miles
  • Start date Start date
B

Barbara Miles

Is there a way to enter a description or Help statement
to a User Defined Function in a VBA module?
 
Hi Barbara,
You can't individually describe each argument in turn, but you can
enter a general description
..
It is a good idea to maintain separate documentation for anything
you do.

The parameter cell will show up in the Function Wizard Help without
any intervention, so choose your parameter names carefully. The
description can be entered as follows: Alt+F11 (VBE), F2 (View,
Object Browser), Select the module (or <globals>) on left, select the
function on right, RClick, properties, fill in description.

Description information for a Function (#fundesc)
http://www.mvps.org/dmcritchie/excel/formula.htm#fundesc
 
Or you can use
application.macroOptions Macro:="MyFunction", Description:="MyDescription", HelpContextID:=37, HelpFile:="c:\mypath\MyHelpFile.hlp
to add it using vba
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top