title: Excel for MAC - ExportAsFixedFormat ignores the print area and generate too many pages instead of one
body: <p>I have a vba excel application that populates some information into a sheet and then exports that sheet to PDF. The sheet is a template of mine, and its print area is fixed by default in order to generate a one-page PDF for each export.</p>
  
  <p>It works perfectly for Windows, generating one-page PDFs for each export. However, when using the same code in a Macbook (OS X El Capitan) with a 15.38 Excel version, the generated PDF contains lots of pages because the default print area is ignored. If I debug and stop the execution just before ExportAsFixedFormat statement the print area of the sheet is OK (the default one) and I can manually save it as one-page PDF, so I don't know where is the issue... I hope someone can help me here! This is the code I use for the PDF generation:</p>
  
  <pre><code>Sheets("mySheet").ExportAsFixedFormat _
      Type:=xlTypePDF, _
      Filename:=myPath &amp; "\" &amp; myName, _
      Quality:=xlQualityStandard, _
      IncludeDocProperties:=False, _
      IgnorePrintAreas:=False, _
      OpenAfterPublish:=False
  </code></pre>