How do I create a new folder

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.
 
P

PC Datasheet

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.
 
R

Ron Weiner

Jon

Take a look at MKDir

MKDir "c:\JonB"

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

Ron W
 
J

Jon B

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top