LoginSignup
0
0

関数

Posted at

Public Function CheckFolderExistence(folderPath As String) As Boolean
If Dir(folderPath, vbDirectory) = "" Then
CheckFolderExistence = False
Else
CheckFolderExistence = True
End If
End Function

Public Function CheckFileExistence(folderPath As String, fileExtension As String) As Boolean
If Dir(folderPath & "*" & fileExtension) = "" Then
CheckFileExistence = False
Else
CheckFileExistence = True
End If
End Functio

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0