Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Folder Creation 1

Status
Not open for further replies.

bpeirson

Structural
Joined
Apr 7, 2003
Messages
147
Location
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.
 
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.

Part and Inventory Search

Sponsor

Back
Top