@HeartCatcher
please follow these steps
1- build data table and give datatable variables with columns name
2- the inside for each where you are getting data each time->put add data row.
3-In add data row put array of variables like-{variable1,variable2}
4-ouside use write range activity to write in excel and give datatable variable