I am developing a Python script for work that will open an Excel file from a particular directory without knowing what the filename is. currently I am opening the file like this. Also opening particular sheet.
book = xlrd.open_workbook(r'D:\New folder\EXCELUPLOAD.xls')
sheet = book.sheet_by_name("Sheet3")
I want to open the file without giving its name, either using its extension or using first few letters etc.
book = xlrd.open_workbook(r'D:\New folder\_.xls or Exce_')
sheet = book.sheet_by_name("Sheet3")
Is there any way around to do this?