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

combining ParamArray with other arguments

Status
Not open for further replies.

VickyC

Technical User
Sep 25, 2010
206
0
0
CA
hi

I want to use 2 Long args and 1 ParamArray in my function below...

Code:
Function TEST(X As Long, Y As Long, ParamArray Arr() As Variant)
    Debug.Print LBound(Arr), UBound(Arr)
    Debug.Print Arr(0), Arr(1)
End Function

When I run TEST(10, 20, 5, 3), the output is...
[pre]
0 1
5 3
[/pre]

Why isn't the TEST output...
[pre]
5 3
5 3 [/pre]

Thanks! Vicky
 
VickyC - I'll retract the question! The answer is obvious.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top