def openWorkbook(xlapp, xlfile): try: xlwb = xlapp.Workbooks(xlfile) except Exception as e: try: xlwb = xlapp.Workbooks.Open(xlfile) exce