Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

UDF prompts

Status
Not open for further replies.

BigInch

Petroleum
Jun 21, 2006
15,161
Is it really not possible to write those little prompts into a UDF? You know, those ones that tell you which bit of data goes in each argument's position?

We will design everything from now on using only S.I. units ... except for the pipe diameter. Unk. British engineer
 
Replies continue below

Recommended for you

If you use descriptive argument names, those are usually visible.

(you see them when you use insert-function in the spreadsheet, and you can see them when you type function call in vba if you have the right settings).

I remember reading that there is a way to go a step farther, but variable names are always enough for me.

=====================================
(2B)+(2B)' ?
 
I agree with pete, for my own use I just use (hopefully) descriptive names for the function arguments. For complex functions where the names don't provide enough information I document it on the spreadsheet, and refer to that.

Nonetheless there is something to be said for doing the job "properly", especially if the functions will be used by someone other than the author.

The link below gives two alternatives for adding descriptions, one is easy but limited, and the other more trouble, but will do a better job.


Doug Jenkins
Interactive Design Services
 
I was aware that the variables show up when inserting function, but apparently just too hopeful that I could do it just like MS does, with the little prompts in the cell box.

Doug, that method looks like it will work, but I don't know if I want to go to that extreme. I might, if it was just one complex function, but I've got a number of them going in the same box and it might just be better to fall back to the insert box and leave it like that. Thanks very much for showing that workaround.



We will design everything from now on using only S.I. units ... except for the pipe diameter. Unk. British engineer
 
BTW it seems that XL 2010 has a canned solution for this included. I can see an upgrade coming, if that's true.

We will design everything from now on using only S.I. units ... except for the pipe diameter. Unk. British engineer
 
It's always seemed a significant oversight. Nice that it might be finally included in 2010.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor