I have to agree with @SudeepGhatakNZ , more explanation of what you are trying to accomplish is needed. The screen shots are helpful, but they don't really explain what you are trying to accomplish. It looks like you are getting the properties of all the files in a document library, then you are going through each file and listing the rows in a spreadsheet, then you are creating an item in a SharePoint list with the data from the Excel spreadsheet. If you already know the spreadsheet where you need to get the rows to populate into your list, why do you need to get the file properties?
And when you say, "So i have given a list in form of sharepoint and then created a Microsoft excel template out of it." Do you mean you have a SharePoint list that you exported to Excel? If so, that is probably your issue. When you do this, it creates a connection to your SharePoint list, so when you refresh the data in the Excel spreadsheet, it updates it with the data from your SharePoint list.
Or do you mean that you have a SharePoint list, and you separately created an Excel spreadsheet that mimics the SharePoint list? If so, are you just trying to keep the Excel spreadsheet in sync with the SharePoint list? If so, just export your spreadsheet to Excel and refresh the data when you want it updated.