|
-
Sep 26th, 2000, 11:54 AM
#1
Thread Starter
Hyperactive Member
Is it possible to write code to create a folder. What I want to do is if this folder does not exist, create the folder and save the file. How can I do this?
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Sep 26th, 2000, 11:58 AM
#2
Lively Member
Take a look at the FileSystemObject.
-
Sep 26th, 2000, 11:58 AM
#3
Guru
Try the MkDir procedure.
-
Sep 26th, 2000, 12:00 PM
#4
Thread Starter
Hyperactive Member
How do I do that? I am a beginner. Also, keep in mind I am using VBA. Please help
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Sep 26th, 2000, 12:01 PM
#5
_______
Code:
Private Sub Form_Load()
'check to see if a dir exists
Dim sDir As String
sDir = "C:\my documents\helpmeout"
If Dir(sDir, vbDirectory) <> "" Then
MsgBox "Exist"
Else
ChDir "C:\my documents"
MkDir (sDir)
'then do your save or whatever
End If
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|