title: How to assign a variable name to a worksheet in openpyxl?
body: <p>In openpyxl 2.4.8, is it possible to give a created Excel worksheet a name that depends on user input, for example?</p>
  
  <p>What I tried so far is the most obvious thing</p>
  
  <pre><code>from openpyxl import load_workbook
  ...
  wb=load_workbook("Some_WB_name.xlsx")
  ws=wb.create_sheet("Data_set_", int(some_user_input))
  </code></pre>
  
  <p>but it gives me a worksheet called just "Data_set_". I also checked the docs <a href="https://openpyxl.readthedocs.io/en/2.5/index.html" rel="nofollow noreferrer">https://openpyxl.readthedocs.io/en/2.5/index.html</a> but did not find anything related there.</p>
  
  <p>Thanks in advance.</p>