Public Function kiemtra(PathName As String, FileName As String)
Dim Exist As Integer
On Local Error Resume Next
Exist = Len(Dir(PathName & FileName))
On Local Error GoTo 0
If Exist = 0 Then
kiemtra = False
Else
kiemtra = True
End If
End Function