From looking at what you want to do, you probably have an array that has an upper and lower group of things you want to keep together.
ie, you might want to keep customer names with their phone numbers. So you allocate the lower 11 locations to Customer Names and the Upper 11 to their phone number.
Name, Phone
Customer(0) = "Steve"
Customer(11) = "Steve's phone number"
Customer(1) = "Don"
Custoemr(12) = "Don's phone number"
To express it mathematically when you think about it Y is really x + 11. So the following code should do the trick. Whenever you want the value of y, just add 11 to the value of x. Like this:
For x = 0 To 10
Debug.Print Customer(x), Customer(x+11) 'Name, Phone
Next x Snaggs
tribesaddict@swbell.net
To define recursion, we must first define recursion.