I guess this is a easy one but I can't figure it out.
I have an array with multiple items, as it follows:
slds = Array(3, 15, 27, 39, 51, 87, 74, 89, 11, 45, 57, 24)
I want to do a For loop using just some items the array, defined by the position, for example, the first 4 elements, but I don't know the correct syntax for it. Something like
For slds(0) to slds(3) 'do some...
Any ideas?
For i = lBound(slds) to Lbound(slds) + 3Then use slds(i) to refer to the item.For i = 0 to 3: msgbox slds(i): next ifor example.