Thread: Macro
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Heera Heera is offline
external usenet poster
 
Posts: 98
Default Macro

Hi all,

I am not able to understand the array concept and from where the i & n
came in, can any one simplify the below mentioned macro for me so that
i can understand.

sub macro()

dim myarray(5) as double
for i 0 to 5
myarray(i) =rnd
next i

for each n in myarray
debug.print n
next n

end sub

Heera Chavan