title: how to get the last column using xlwings?
body: <p>So I have an excel file that contains data in this format:
  <a href="https://i.stack.imgur.com/OhgYm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OhgYm.png" alt="enter image description here" /></a>
  I want to read this data using xlwings and I want this to be dynamic that means if I add the data in the or middle of this then it should be able to do this. I have tried this so far but it is not working properly:</p>
  <pre><code>import xlwings as xw
  app = xw.App(visible=False)
      try:
          wb1 = app.books.open(commonInputs)
          sheet = wb2.sheets['Regional Transmission Links']
          lastCell = generatorSheet.range('A1').end('right').last_cell.column
          name = sheet.range('C5:L'+str(lastCell)).value
      except Exception as e:
          logging.exception(&quot;Something awful happened!&quot;)
          print(e)
      finally:
          app.quit()
          app.kill()
  </code></pre>
  <p>Can someone please help ?</p>