+ Reply to Thread
Results 1 to 2 of 2

creating directories

  1. #1
    Registered User
    Join Date
    03-25-2004
    Posts
    57

    creating directories

    Hi,
    Is it possible to include in a macro code to create and name a new directory?

    Cheers
    Free

  2. #2
    Bob Phillips
    Guest

    Re: creating directories

    MkDir "C:\myTest\mySubTest"

    You need to be careful that the upper directories exist fisrt, so probably
    best to just try and create them

    On Error Resume Next
    MkDir "C:\myTest"
    MkDir "C:\myTest\mySubTest"
    MkDir "C:\myTest\mySubTest\mySubSubTest"
    On Error GoTo 0



    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "freekrill" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi,
    > Is it possible to include in a macro code to create and name a new
    > directory?
    >
    > Cheers
    > Free
    >
    >
    > --
    > freekrill
    > ------------------------------------------------------------------------
    > freekrill's Profile:

    http://www.excelforum.com/member.php...fo&userid=7561
    > View this thread: http://www.excelforum.com/showthread...hreadid=389802
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1