Visual Basic for Applications Reference

MkDir Statement Example

This example uses the MkDir statement to create a directory or folder. If the drive is not specified, the new directory or folder is created on the current drive.

  
    
      MkDir
     "MYDIR"   ' Make new directory or folder.