@Kalees9486 - You can easily do it after writing the output to excel. You can read that particular row and write to a text file.
or if you want to copy to other sheet, follow the same process mentioned below and you can write it…
Please refer this post…