|
|
|
|
|
|
Har du set hvor smart det kan være?
|
|
SmartOffice - FileOrFolderExists
Check if a specific file exists on your harddrive or server.
Eksempel 1
Public Function FileExists(ByRef FullPathAndFileName As String) As Boolean
' Returns True if the file exists
FileExists = CBool(Len(Dir(FullPathAndFileName)))
End Function
Eksempel 2
Public Function FolderExists(ByRef FullPathName As String) As Boolean
' Returns True if the folder exists
FolderExists = CBool(Len(Dir(FullPathName, vbDirectory)))
End Function
|
|
|
|
Smart Data Management
Compare 2 Columns
Excel Super- Subscript
Teachers Excel Tools
|
|
|
|
|
|