Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Barring a UserFunction 2

Status
Not open for further replies.

N1GHTEYES

Technical User
Jun 18, 2004
771
GB
Two user-function questions:

1 I have a function I want to be able to use across a project in code (so I've got it declared as Public in a standard module), but I do NOT want it to be accessible from the spreadsheet "User Defined" functions list. I could re-cast the function as a Sub, but that would mean changing a bunch of other code that calls it, and it is neater to do it as a function anyway. So, does anybody know a way to bar a public function from the list of available UDFs?

2 When you call a function into a cell, using the drop-down list of available functions, the input screen gives a description of the function itself and the parameters. For a Used-Defined function, I know how to insert the general description, but I've not so far figured out how to insert the definitions of the parameters. Can somebody suggest a method please?
 
You may try to play with the Option Private Module instruction.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks PHV - you're a star, so have one. I looked all over for that.

Got any ideas re question 2? I guess it's not vital to have descriptions for all the parameters, but it would be nice. It also impresses the hell out of my colleagues who are (even) less well versed in XL.
 
Thanks combo. That looks like it is exactly what I was after. I guess that means they didn't provide a straightforward route to do it directly. I'm relieved, I was beginning to feel very dumb.

You also deserve a star, especially for the pointer to that useful-looking site.

2 questions, 2 replies, 2 solutions. What an excellent forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top