Python Openpxyl query workbook for list of contained worksheets
<p>Dear Python community,</p>

<p>I'd like to parse a recent Excel .xlsx file with the installed Openpyxl module. I need to get a list of the worksheets contained within the workbook. How can I code that in Python?</p>

<p>Thank you.</p>

<p>Regards,</p>

<p>This is the right code : </p>

<pre><code>from openpyxl import load_workbook

wb = load_workbook(r"path_excel_file\filename.xlsx")

for sheet in wb.worksheets:
    print str(sheet).replace('&lt;Worksheet "','').replace('"&gt;','')
</code></pre>

python excel worksheet