I have read all the excels(around 40), If any excel is not contain any data i need to delete, if the excel contains data I need to read those excels again for further calculations, i used if condition and displaying in message box the output is coming correctly,but while trying to delete the excel file with no data giving an error like " excel is in used cant delete".
Can any one please help me to resolve.
I want to read the excels(40 excels) daily, then i want to skip/delete the excel with no data, I only take the excels which contains data, from this excels I need to look for ACH DR/CR, ACH DR/CR_R then i need to check this in another excel to match ACH DR/CR on which code it is matching i need to fetch the Account number which is present below of ACH DR(debit)/CR(credit).
based on the account number I need to fetch the amount present in matched excel and in master excel to which account number is matching.