Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
select function arguments in runtime
Hi
I am working on a user defined function in Excel, and am wondering if it is possible to select what arguments to use in a function when the file is opened. I am thinking something like: if c1= "Yes" then argument a is to be used - here_: "Yes" if c2= "Yes" then argument b is to be used - here_: "No" if c3= "Yes" then argument c is to be used - here_: "Yes" if c4= "Yes" then argument d is to be used - here_: "Yes" Function (a as string, c as string, d as string) ..... |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
select function arguments in runtime
There is a good write up in the VBA help using the following
Understanding Named and Optional Arguments Paste entire line above into the VBA help. Also to determine if a variable isn't use look at VBA help IsMissing Function Again copy the above line into the VBA help "frankgtl" wrote: Hi I am working on a user defined function in Excel, and am wondering if it is possible to select what arguments to use in a function when the file is opened. I am thinking something like: if c1= "Yes" then argument a is to be used - here_: "Yes" if c2= "Yes" then argument b is to be used - here_: "No" if c3= "Yes" then argument c is to be used - here_: "Yes" if c4= "Yes" then argument d is to be used - here_: "Yes" Function (a as string, c as string, d as string) ..... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Disabling Function Results in the Function Arguments Window | Excel Programming | |||
customise Insert Function/Function Arguments dialog box | Excel Programming | |||
Need to open the Function Arguments window from VBA for a user defined function. | Excel Programming | |||
Runtime Error 1004 Select method of Range class Failed | Excel Programming | |||
RUNTIME ERROR '1004' --- Select method of worksheet class failed | Excel Programming |