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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the max number of argument for a UDF? 1

Status
Not open for further replies.

steve728

Programmer
Mar 16, 2003
536
US
What is the maximum number of arguments you can insert into a User Defined Function?

Public Function(Arg1 as string, Arg2 as string...

Thanks in advance,

Steve
 
I have never read anything that says that there is a limit (not to say there is not), but if you are going to send in a whole lot of arguments sometimes you may want to use a
PARAMARRAY

Remember it has to be declared as Variant, and must be the last argument in the argument list

Anyways, why do you ask? Have you run into a limit. I have used some pretty large parameter arrays and have not experience a problem.

If you never used PARAMARRAY is can add a lot of flexibility to a function, where you can pass the same function 2 arguments or 20 arguments.
 
Dear MajP,

No I haven't run into any argument limits. I'm creating a utility UDF and wanted to know ahead of time. Thanks again.

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top