Har du set hvor smart det kan være?

Microsoft Office, Word skabeloner, Excel regnearkSmart Office Word skabelon system

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 Office Freeware Smart Data Management
Compare 2 Columns
Excel Super- Subscript
Teachers Excel Tools
         
Smart Office - Word og Excel specialist