+ Reply to Thread
Results 1 to 2 of 2

Create Directories from Excel cell entries

  1. #1
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Create Directories from Excel cell entries

    Amended request, only need to create directories based on data in Column F only.
    One directory for each cell. Hoping that uncomplicates my query.
    My request:
    Is it possible to create a script/macro ?? to create a Directory (Folder) based on the content of Column "F".

    No longer required below:
    File has been uploaded to assist. I have reduced the number of entries to 20 but in reality there is 3,500 and is expected to become larger.
    For the purpose of this request, both Columns J and K are flexible in what they contain - I manually added these to show a character count in "J" and the preferred directory name in "K". The fixed data in the sheet is in Columns "A to I" only.
    Amendments can be made to both/either Column "J" which shows how many characters there are, and
    Column "K" which I've used as "concatenate" to create the preferred name from the fixed data in "F & G".

    My request:
    Is it possible to create a script/macro ?? to create a Directory (Folder) based on the content of Column "K".
    If the script could prompt the user to either:
    a) "Browse" to determine the file path to follow (preferred option) for creation, or
    b) create in a default location of "C:/Temp/Units/" (create automatically if not already created), or
    c) type it manually (non preferred option).

    The option a) example would be:
    Run the script/macro, a prompt would ask where do you want to place these newly created Directories (or similar abbreviated comment), then the user would selected the file path, click OK, the script would create the directories (folders) with the names as listed in Column K.

    The option b) example would be:
    Run the script/macro, advise that newly created Directories will be created and placed in "C:/Temp/Units/" the user clicks OK, the script would create the directories (folders) with the names as listed in Column K.

    Thank you in advance if you've read the request, and a bigger thank you if you have the time to provide me with an outcome.
    kindest regards
    Chris
    Attached Files Attached Files
    Last edited by Christopherdj; 06-23-2021 at 12:18 AM. Reason: Unresolved

  2. #2
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    276

    Re: Create Directories from Excel cell entries

    Notes:
    + this is for windows
    + no folder name sanitization is taken into account
    + the person running it should be trusted, and at least aware of the idea that folder path injection is a thing

    Please Login or Register  to view this content.
    If it'd make you feel better using my answer because of my street cred, then you can go ahead and click Add Reputation below to improve it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create Windows Directories from column entries?
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 11:05 AM
  2. [SOLVED] Create Windows Directories from column entries?
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  3. Create Windows Directories from column entries?
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  4. Create Windows Directories from column entries?
    By || cypher || in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. Create Windows Directories from column entries?
    By || cypher || in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. [SOLVED] Create Windows Directories from column entries?
    By || cypher || in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. Create Windows Directories from column entries?
    By || cypher || in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. Create Windows Directories from column entries?
    By || cypher || in forum Excel General
    Replies: 2
    Last Post: 07-22-2005, 12:05 PM

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