How do I create a new folder

  • Thread starter Thread starter Jon B
  • Start date Start date
J

Jon B

Can anyone tell me how I can create a folder programmatically, with a name
generated from the contents of a field?

Thanks.
 
From the Help file ----
Creates a new directory or folder.

Syntax

MkDir path

The required path argument is a string expression that identifies the
directory or folder to be created. The path may include the drive. If no
drive is specified, MkDir creates the new directory or folder on the current
drive.
 
Jon

Take a look at MKDir

MKDir "c:\JonB"

would make a directory called JonB just off of the root of C:

Ron W
 
PC Datasheet said:
From the Help file ----
Creates a new directory or folder.

Syntax

MkDir path

The required path argument is a string expression that identifies the
directory or folder to be created. The path may include the drive. If no
drive is specified, MkDir creates the new directory or folder on the current
drive.


Thanks! Don't think I didn't look in the Help file first... a search for
"mkdir" says "No results found on Office Online"
 
Back
Top