title: Using add_table() method in openpyxl corrupts an existing excel file
body: <p>I have an existing excel file called &quot;File.xlsx&quot; with a sheet called &quot;MySheet&quot;</p>
  <p>The data in MySheet is currently a range, I would like to open the excel file and convert the data in MySheet to an excel table. I am succesfully able to do this part, but when I open the excel file I get an error message that reads: <em>Repaired Records: Table from /xl/tables/table1.xml part (Table)</em></p>
  <p><strong>The script works in creating the table but I would like to avoid the excel file being unreadable error.</strong></p>
  <p>The script I am using is here:</p>
  <pre><code>from openpyxl.worksheet.table import Table
  from openpyxl.utils import get_column_letter
  
  file_name = &quot;File.xlsx&quot;
  wb = load_workbook(file_name)
  ws = wb['MySheet']
  max_row = ws.max_row
  max_column = ws.max_column
  
  table = Table(displayName=&quot;FailureData&quot;, ref=&quot;A1:&quot; + get_column_letter(max_column) + str(max_row))
  
  ws.add_table(table)
  wb.save(file_name)
  wb.close()
  </code></pre>