×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

VBA Folder Creation

VBA Folder Creation

VBA Folder Creation

(OP)
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.

RE: VBA Folder Creation

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

RE: VBA Folder Creation

Create a reference to the MS Scripting Runtime (scrrun) and then use the FileSystemObject.

Evan T. Basalik, MCSD
--------------------------------
It's all about prioritization...

RE: VBA Folder Creation

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources