I already wrote the loop for you. However, with the dbf method that I posted, you don't need that.

If you want to get the ball rolling, create a dbf with the fields that you want to export and post that. It is then very easy to insert the excel data into the dbf.