title: How do i check whether a File exists using VBA Macro in Powerpoint
body: <p>I want to check if a file already exist before running my code. If it exists than exit otherwise keep my code running. What I wrote is following code: </p>
  
  <pre><code>Private Sub CommandButton21_Click()
  
  If FileFolderExists("C:\Users\Moez\Desktop\Macro_Project\Test1.pptm") Then
      MsgBox "Modification already done!"
  Else
      deleteTextBox
      AllBlackAndDate
      LastModifiedDate
      SaveAllPresentations "C:\Users\Moez\Desktop\Macro_Project\Test1.pptm" ' save here
  End If
  
  End Sub          
  </code></pre>