create folder if it doesn't already exist

lala

Registered User.
Local time
Today, 17:35
Joined
Mar 20, 2002
Messages
741
how can i do that?
i'm using mkdir to create a folder
but if it's already there, i'm getting an error message

so how can i first check if the folder already exists, and if not, then create it

thank you!!
 
Sorry, made a mistake with that one, it needs to be:

Code:
If Dir("YourFolderPathHere", [COLOR="Red"]vbDirectory[/COLOR])= "" Then
    MkDir("YourFolderPathHere")
End If
 
thank you!!!!!!!!!!!


just trying to learn something, what does VBDirectory do?
 
ok, so if i WAS trying to find a file, then what would it be?
vbFile?
 
GladWeCouldHelp.png
 

Users who are viewing this thread

Back
Top Bottom