title: VBA can't open excel (Too many different cell formats.)
body: <p>I have a vba macro to open excels and read data. </p>
  
  <pre><code>Dim xlApp As Excel.Application
  Set xlApp = CreateObject("Excel.Application")
  Set excelworkbook = xlApp.Workbooks.Open(file_path, ReadOnly:=True, notify:=False)
  </code></pre>
  
  <p>And error "Too many different cell formats" occurred on the third line. I assume it's because of cell formats(fonts, borders, etc.) and does anyone know how to resolve this issue programmatically? No error is raised when I try to open the excel manually. Any advice would be appreciated. </p>