C
crferguson
I know this will sound odd, but the MkDir function isn't creating
folders... and it isn't throwing any errors.
I don't have any "On Error Resume Next" anywhere in my code. It just
isn't creating any folders. The folder doesn't already exist and it
isn't trying to create multi-level folder structures or anything like
that. I just want to create a folder named "test" on my root drive
(C:\ in this case). Here's the code:
Private Sub CreateFolder()
sProfileName = "C:\test"
'On Error GoTo folderexists
MkDir sPath & sProfileName
'Exit Sub
'folderexists:
'Exit Sub
End Sub
folders... and it isn't throwing any errors.
I don't have any "On Error Resume Next" anywhere in my code. It just
isn't creating any folders. The folder doesn't already exist and it
isn't trying to create multi-level folder structures or anything like
that. I just want to create a folder named "test" on my root drive
(C:\ in this case). Here's the code:
Private Sub CreateFolder()
sProfileName = "C:\test"
'On Error GoTo folderexists
MkDir sPath & sProfileName
'Exit Sub
'folderexists:
'Exit Sub
End Sub