View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
maweilian maweilian is offline
external usenet poster
 
Posts: 11
Default Append to an array


This is my best guess on how to do this:

Dim testvalue, testarray()
For testvalue = 50 To 100 Step 5
ReDim Preserve testarray(UBound(testarray) + 1)
testarray(UBound(testarray)) = testvalue
Next testvalue

So the goal is to start with an array of unknown size and simply add values
until complete.

I am sure this is very flawed. Would appreciate any help.

Will