Jun 16, 2004 #1 peryan77 Programmer May 7, 2004 41 US How would I go about allowing a user to create a folder in a given directory, but only if it does not already exist?
How would I go about allowing a user to create a folder in a given directory, but only if it does not already exist?
Jun 16, 2004 #2 jrbarnett Programmer Jul 20, 2001 9,645 GB Use code such as the following: Code: If Dir("C:\Data\Mystuff", vbDirectory) <> "" Then ' create the folder MkDir "C:\Data\Mystuff" End If John Upvote 0 Downvote
Use code such as the following: Code: If Dir("C:\Data\Mystuff", vbDirectory) <> "" Then ' create the folder MkDir "C:\Data\Mystuff" End If John
Jun 17, 2004 #3 Craig0201 Technical User Oct 11, 2000 1,261 GB Or On Error Resume Next MkDir "C:\Data\Mystuff" Craig Upvote 0 Downvote