Actually the scenario is: there are like around 50 checkpoint in one single application and I have more than 10 different Applications. When I'm running those in batch all the print logs appear together. I want to export all those print logs and export in excel.
As Eagles pointed you can use that code to get the text and then use FSO and write it a file with XLS extension. Then you need to open it with Excel COM API and later post-process the same to add colors as well