x = win32com.client.GetActiveObject("Excel.Application")
file_name = 'tw_aging.XLSX'
for wb in x.Workbooks:
if wb.Name == file_name:
print(wb.Name)
wb.Close()
x = win32com.client.GetActiveObject("Excel.Application")
file_name = 'tw_aging.XLSX'
for wb in x.Workbooks:
if wb.Name == file_name:
print(wb.Name)
wb.Close()