I am trying out this code, but it isn't working. Any help on this whole filesys thing would be appreciated as I am new to this and have no clue how it work or what the correct syntax is....
Thanks
Jesse
Public Function MakeDir()
Dim Dir As String
Dim FormattedDate As String
Dim strFileName As String
Dim Final As String
Dir = "F:\SHARED_4\Jesse\Weekly Files\"
FormattedDate = Format(Date - 3, "MM-DD-YY"
Final = Dir & FormattedDate
If FileSystem.FolderExists(Final) = False Then
MsgBox "File Doesn't exist"
MkDir Final
Else
MsgBox "File Exists!"
End If
End Function
Thanks
Jesse
Public Function MakeDir()
Dim Dir As String
Dim FormattedDate As String
Dim strFileName As String
Dim Final As String
Dir = "F:\SHARED_4\Jesse\Weekly Files\"
FormattedDate = Format(Date - 3, "MM-DD-YY"
Final = Dir & FormattedDate
If FileSystem.FolderExists(Final) = False Then
MsgBox "File Doesn't exist"
MkDir Final
Else
MsgBox "File Exists!"
End If
End Function