View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default VBA syntax help: ReDim Preserve an array

Just reverse your rows and columns--both when you assign the values and when you
read the values back.

ReDim Preserve arrData (1 to 13, 1 to z)
arrData(1,z) = [cell value]




Dave wrote:

And second, look at ReDim in VBA's help. You'll find that you can only change
the last dimension.

Thanks, Dave. Can you recommend a dynamic way create a N Rows, Y
Columns array where N is uncertain?


--

Dave Peterson