Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Custom Function Tips

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dunnerca - 23 Jan 2006 21:21 GMT
I have created a custom function with 5 possible arguments.  Is there a way
to have the "IntelliType" feature work with custom functions where the user
is prompted for the list of required arguments for the function?
Tom Ogilvy - 23 Jan 2006 22:04 GMT
Public Function CustomFunctionName(a as string, b as Long, c as double, d as
string, e as long)

End sub

in a general module.

then if you do Insert function, it should be under "user defined" and boxes
provided by the dialog for each argument.

If you want help text for the arguments, see Laurent Longre's site for a
free addin that will give you support for this

http://xcell05.free.fr/
Signature

Regards,
Tom Ogilvy

> I have created a custom function with 5 possible arguments.  Is there a way
> to have the "IntelliType" feature work with custom functions where the user
> is prompted for the list of required arguments for the function?
dunnerca - 24 Jan 2006 13:35 GMT
Sorry, Tom, for maybe not being more specific.  When you start entering a
function, let's say "=PV(" on the worksheet, the arguments show on the screen
and the argument you are entering is highlighted in bold.  That is what I was
talking about being able to code with a custom function.  I know that the
Insert Function menu choice will show the choices but I would rather be able
to code the other prompts.  Do you know any way of doing that?

Thanks.

Kevin

> Public Function CustomFunctionName(a as string, b as Long, c as double, d as
> string, e as long)
[quoted text clipped - 15 lines]
> user
> > is prompted for the list of required arguments for the function?
Tom Ogilvy - 24 Jan 2006 14:13 GMT
For this functionality with a User Defined function built in VBA, I don't
believe there are any options you can use to force excel to behave other
than it does.

Signature

Regards,
Tom Ogilvy

> Sorry, Tom, for maybe not being more specific.  When you start entering a
> function, let's say "=PV(" on the worksheet, the arguments show on the screen
[quoted text clipped - 26 lines]
> > user
> > > is prompted for the list of required arguments for the function?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.