Hi lasw10
I see in your example that you used C:\ why the double slashes?? I will give it a try :^)
Here the code I have been trying to work out... (newbe here)
Sub folder()
'//create folder
Dim sFolderName As String, set_Path As String, name As String, datpath As String
Set fs = CreateObject("Scripting.FileSystemObject")
'//////////change path/file name below
set_Path = "C:Daily ReportsEOD_CurrentEOD_"
sFolderName = Format(Now(), "mm-dd-yy")
'///Name=cat name & date to use later
[name] = (set_Path & sFolderName)
datpath = [name]
'//create folder
If Error <> 0 Then
msgbox " Folder exists", vbInformation, "EOD Report Filter"'Resume Next if folder exists
End If
On Error Resume Next
fs.CreateFolder [name]
'above code works fine creates a folder with text & date
'//////////////
'save file to folder just created...
Windows("Credits_Current.iif").Activate
ChDir "datpath" '/Pathwanted>"C:Daily ReportsEOD_CurrentEOD_DateCredits_Current.iif"
'/ 9/14 add date to file name
'//////////
Dim sFileName As String, sPath As String
'//////////change path/file name below
sPath = "datpath" '//////"C:Daily 'ReportsEOD_CurrentEOD_Date"
'////////
sFileName = Format(Now(), "mm-dd-yy")
ActiveWorkbook.SaveAs (sPath & "EOD_" & sFileName), FileFormat:=xlNormal, _
CreateBackup:=False
'ActiveWindow.Close
'END DATE ADDED
'///////////////////////
End Sub
Thanks
regards gene