VBA: Use VBA to create directories

=========
QUESTION
———
Can I create directories from within my VBA code?

 

=========
ANSWER
———
see EXAMPLES

 

=========
EXAMPLES
———
MkDir "c:TOTNExamples"

———
If Len(Dir("c:TOTNExamples", vbDirectory)) = 0 Then
MkDir "c:TOTNExamples"
End If

 

=========
APPLIES TO / KEY WORDS
———
VBA
Directory
Directories
md
MakeDirectory
Make Directory

 

=========
REF
———
http://www.techonthenet.com/access/functions/file/mkdir.php

 


http://www.anysitesupport.com/vba-use-vba-to-create-directories/
http://anySiteHosting.com

By | 2011-07-13T08:50:11+00:00 July 13th, 2011|Access, Computers, Documentation, Microsoft, VBA|0 Comments