Hello guys im trying to read data's from different excel (which is in folder) ,and fetching data from web and adding in same excel files (which is in folder) so the main code is all about getting stock price of different company's and adding in excel

Try changing the excel scope… Can you pass me the xaml file?

Update: I saw your code, do the following… after the first for loop close the original tab and it will work perfectly fine for you!!!