+ Reply to Thread
Results 1 to 5 of 5

Create folders and subfolder based on 2 cell values

  1. #1
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Create folders and subfolder based on 2 cell values

    Hi all,

    I tried to create a folder structure per client based on an excel sheet that I receive per email and needs to be processed.
    In column B there is the BIN number and in Column D the client name. The sub folders have all the same naming convention and it would look like this:

    12345_Client Name Inc.
    Documents
    Emails

    I have the below code, but it only takes from the selected range in a column range and then I miss the client name in the main folder.
    It is possible that we need to add a few more folders and it would need to be flexible (also work in excel 2000, 2003, 2007 and 2010).
    Any chance to find better solution?

    Please Login or Register  to view this content.
    Once the main folder and sub folders are created, we need to send the person that will work on the case the path to the folder.
    So if the path could be captured as a value and that one I could pass to the email that we send, will for sure improve our work.


    Greetings.

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Create folders and subfolder based on 2 cell values

    Try this
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Create folders and subfolder based on 2 cell values

    Hi,
    That works great :-)
    What about getting the path of the main folder and pass it to memory so I paste the link in an email that I create with a macro?

    greetings.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Create folders and subfolder based on 2 cell values

    I cannot say for sure if I got your target but try this .. you will get a message of the path for each subfolder of Emails
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Create folders and subfolder based on 2 cell values

    Hi,

    This works great and I can pass the strPath for the email creation.
    One silly question, what happens if the folder already exist? (some one created before)

    Greetings.

+ 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. [SOLVED] Create Dated Folder with Subfolder from Cell Values
    By bloomingcarrot in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-21-2014, 05:53 PM
  2. Auto Create multiple folders within an Outlook Subfolder using Excel List
    By lawriecunningham in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2013, 05:02 PM
  3. Macro to create folders based on content of a cell
    By CCPopsicle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2013, 10:42 AM
  4. Create hyperlink to folders based on values in col A
    By Biinge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2012, 03:35 PM
  5. Creating Folders based on cell values
    By vbwanab in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-19-2011, 05:16 AM

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