title: Saving MS word (docx) as pdf on Mac OS X with one click using macros
body: <p>I have a question on how to edit the following macros to save MS word (.docx) file as PDF on macOS Sierra without .docx in the file name. That is, the macros works perfectly BUT it always saves files as, for example, letter.docx.pdf. It is a very easy option to save in pdf with one click only.</p>
  
  <p>And I would appreciate if someone could help to me amend the macros below so that there is no .docx in the file name. I have tried to hide extensions in Finder, but that does not seem to help:</p>
  
  <hr>
  
  <pre><code>Sub SaveActiveDocAsPDF()
  
  On Error Resume Next
  
  ActiveDocument.SaveAs _
  fileName:=ActiveDocument.FullName &amp; ".pdf", _
  FileFormat:=wdFormatPDF
  End Sub
  </code></pre>
  
  <hr>
  
  <p>Thank you very much in advance.</p>