+ Reply to Thread
Results 1 to 4 of 4

EXCEL VBA: Create Unique Folders based on Repeated Cell Values

  1. #1
    Registered User
    Join Date
    08-23-2019
    Location
    OH, USA
    MS-Off Ver
    2016
    Posts
    3

    EXCEL VBA: Create Unique Folders based on Repeated Cell Values

    Hello,

    I have a workbook with two sheets. One sheet contains a form, and the other contains rows of data. The script below populates the form ("Form_1") using the data in the other sheet ("Sheet3"). Once a row of data has passed through the form, a PDF of the filled form is created. Currently, I'm able to create a folder where all the PDFs go to after the script is done passing through all the rows.

    I, however, would now like to create subfolders (Logistics, Engineering, Research and Development, etc.) within the main folder (Output) and store the PDFs created within its pertaining group. I don't know how to go about this with the script I have since I have entries with the same group.

    May I ask for someone to help me out with this?

    Thanks in advance!


    Please Login or Register  to view this content.
    pic.JPG

    Thanks in advance!

    Note: Forgive my lack of expertise in posting a good question if it isn't. I'm new to this forum. I'll sooner than later get the hang of using the question tool. I see that there is an attachments icon. I'm not sure if I could've provided a sample of what I'm working with through there. I wasn't able to make it work. Hopefully the pictures I provided are enough context to help me out.
    Last edited by ChunkyFresh; 08-23-2019 at 02:31 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: EXCEL VBA: Create Unique Folders based on Repeated Cell Values

    Hello ChunkyFresh,

    Welcome to the forum!

    Give this a try...

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    08-23-2019
    Location
    OH, USA
    MS-Off Ver
    2016
    Posts
    3

    Re: EXCEL VBA: Create Unique Folders based on Repeated Cell Values

    Leith,

    Thank you! This worked perfectly. I'm creating about 1500 forms for over 15 different departments, and each department has, at times, its own inner branches. It would've been a mess to have to organize them in designated folders once I completed publishing them all. How do I mark the question or thread as solved?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: EXCEL VBA: Create Unique Folders based on Repeated Cell Values

    Hello ChunkyFresh,

    You're welcome. Good to know it made your job easier. I'll take care of marking the thread solved.

+ 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] Code to create Folders and sub folders based on variable cell values
    By maxwell13 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-03-2015, 09:28 PM
  2. [SOLVED] Create folders and subfolder based on 2 cell values
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2015, 03:54 AM
  3. Creating Folders based on cell values
    By vbwanab in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-19-2011, 05:16 AM
  4. Unique values & qty of each repeated value
    By digdug in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-01-2007, 11:25 AM
  5. [SOLVED] create list of unique values from a column with repeated values?
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  6. [SOLVED] create list of unique values from a column with repeated values?
    By Chad Schaben in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. create list of unique values from a column with repeated values?
    By Chad Schaben in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

Tags for this Thread

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