Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

VBA Folder Creation 1

Status
Not open for further replies.

bpeirson

Structural
Apr 7, 2003
147
0
0
CA
I would like to know if there is a way to have VBA create a folder. I have no trouble creating new files, primarily in Excel, but I can not figure out how to create a folder.

The help files seem to have no reference on this subject.

Any help is appreciated.

Brad.
 
Replies continue below

Recommended for you

Have you tried using the MkDir command?

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Create a reference to the MS Scripting Runtime (scrrun) and then use the FileSystemObject.

Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...
 
I finally got a chance to use this suggestion and it works fine. I sometmes fall into the trap of narrowing my search for information, I continued to search for niformation on making folders in the help files but this post reminded me that directory would be a suitable search term.

Thanks to CajunCenturion for opening my eyes.

 
Status
Not open for further replies.
Back
Top