+ Reply to Thread
Results 1 to 6 of 6

directory creator

  1. #1
    Registered User
    Join Date
    04-05-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 365
    Posts
    71

    directory creator

    G'Day Members,

    I'm wondering if there is a method where a list of directories and subdirectories in excel can be created as directories in a windows environment?

    The excel sheet attached outlines how the directory structure would be setup in the spreadsheet.

    I would love to simply run a macro, the directories and subdirectories are created and vwala.

    Any ideas? This one is wwaayyyy out of my league in regards to Excel macro creation.
    Attached Files Attached Files
    Last edited by Xtopher; 07-12-2010 at 12:01 AM.
    Regards,
    Xtopher

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: directory creator

    Based on your example, this would work:

    Please Login or Register  to view this content.

    Remember, you have to put the parent directories first, then subdirectories or it won't work.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: directory creator

    This is better, you can just list the path all the way down to the deepest subdirectory, it will create all the directories all the way down without you having to list them all separately.
    Please Login or Register  to view this content.

    So based on these strings, it will create 11 different directories for you:
    C:\2011\Test
    C:\2012\Test
    C:\2013\Test\DeepTest
    c:\2014\Test\DeeperTest\Holycowthisisdeep
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-05-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 365
    Posts
    71

    Re: directory creator

    Thank you very much JB!

    That's a solid base to start with.

    Muchly appreciated.

  5. #5
    Registered User
    Join Date
    06-10-2009
    Location
    Sandy Eggo
    MS-Off Ver
    Excel 2010
    Posts
    65

    Re: directory creator

    Forgive my ignorance on this one but where do we specify what path we want to map out? Also, how would I edit the code to produce the actual file names with extensions?

    Thanks
    Last edited by sdgenxr; 09-08-2010 at 02:23 PM.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: directory creator

    This thread is not about making files, this thread is about making directories on your hard drive.

    Since every post in this thread includes not only the code but sample files showing how it's laid out, I trust you can look at those to answer your "how to" questions.

+ 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