Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
MkDir Simply Not Creating Folders
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Creating List From Folders | Excel Programming | |||
Help with Creating folders on Save | Excel Discussion (Misc queries) | |||
Creating folders using VBA | Excel Programming | |||
Creating folders with VB | Excel Programming | |||
Creating Folders from Excel Using OLE Automation | Excel Programming |