You need to do this:It's pretty simple to work out what it does, I hope you'll ask again if you have any difficulties!VB Code:
Dim nDelete As Long Dim i As Long nDelete = 5 'The index you want to KILL! :) For i = nDelete + 1 To UBound(MyArray) MyArray(i - 1) = MyArray(i) Next i Redim Preserve MyArray(LBound(MyArray) To UBound(MyArray) - 1)




Reply With Quote