You need to sit down and work out exactly what you are doing, or trying to do: that code doesn't do anything particularly useful, and appears to have been "thrown together" with little or no planning.
Work out what you want to achieve, and start planning from there: what do you want to "store", how long do you want to store it, what are you going to do with it later? These are important, as a "store it so I can use it next time the app runs" solution is very different from a "store it so I can use it after the loop" would be.
And please, don't use Excel to store data:
That's not a database, dude![
^]