How do i check whether a File exists using VBA Macro in Powerpoint
问题 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: 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 回答1: If you want to check a file exists on the