In that datatable field you need to give the datable variable that is used in the read range you used

If you created the that variable name as dt then you should use same dt in the write range or append range to
Writerange with add headers property will write the data in the excel file with headers
Append Range will write the data from the next cell where the datatable is already filled
Regards
Sudharsan
