Ciao a tutti,
Sto cercando di aprire un file excel con python usando il codice:

codice:
import openpyxl
file_excel = openpyxl.load_workbook('Tab_rev01.xlsx')
sheet = wb.get_sheet_by_name('Sheet1')
print(sheet['A1']
Ma mi da un errore del tipo:

Traceback (most recent call last):
File "C:\Users\...\test1.py", line 3, in <module>
sheet = wb.get_sheet_by_name('Sheet1')
NameError: name 'wb' is not defined

La guida che sto seguendo è questa: https://devnews.it/posts/59678962664...ython-openpyxl

Avete qualche idea su cosa puo causare questo errore?

Grazie mille