View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ExcelMonkey[_124_] ExcelMonkey[_124_] is offline
external usenet poster
 
Posts: 1
Default Deleting data and element in a 1D array

I have a 1-D VBA array with 600,000 elements.

For X = 1 To MAX 'Max = 600,000
NumArray(X) = X
Next X

I then go into the array and randomly delete various data in th
elements. Lets say every 3rd element. I would write looping cod
around something like NumArray(3) = "", NumArray(6) = "" etc...

I want to be able to redimension the array so that all the element
with deleted data ("") are removed. So now the array size is onl
400,000. How do I this?

Thank-yo

--
Message posted from http://www.ExcelForum.com