View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] robinson.william@gmail.com is offline
external usenet poster
 
Posts: 5
Default How Populating Arrays/Range in VBA code

Hey All,

I have a set of 500 or so numbers that i want to use for debugging.
These numbers are in matrix form (30 rows) x (18 cols) and i need to
hard code these numbers into cells for debugging. I would like to
insert these values into a range of the same size ( Range("B2:S31")) is
there a easy way of doing this?

sorta like Range("B2:S31") = [1 , 2, 3, 4......]

i've tried the same thing with populating a multidimensional array and
the only way i can do it is to write one line of code per element of
the array.Can anybody help me with this?