Sub RandomPattern() Cells.Clear For i = 1 To 1000 rr = [=randbetween(1,20)] rc = [=randbetween(1,20)] Cells(rr, rc).Select Cells(rr, rc).Interior.Color = RGB([=randbetween(1,255)], [=randbetween(1,255)], [=randbetween(1,255)]) 'ActiveCell = i 'Delay ' DoEvents Next End Sub