I keep getting this error on this code recomended by Infidel. Was urged to not use fso and it looked to work well... it reads the file, but does not send it to the specified folder location. Can anyone help me with this error, I have been trying to find resource information online bout it, but was hoping someone here could shed bit more light.
Private Sub cmdOk_Click()
Static FolderChecked As Boolean
Dim FileName As String
FileName = ListDir.Path & _
IIf(Right$(ListDir.Path, 1) = "", "", "") & listFile.FileName
'Now we'll cheat to make sure the folder exists,
'though you're SOL if a file by those names exists.
If Not FolderChecked Then
On Error Resume Next
MkDir "c:projectsparyoll 2"
MkDir "c:projectsparyoll 2data"
On Error GoTo 0
'So it'll only be checked the first time
FolderChecked = True
FileCopy FileName, "c:projectsparyoll 2data" <--- error is here
again thank you