+ Reply to Thread
Results 1 to 4 of 4

saving files in specific folders dynamically

  1. #1
    Registered User
    Join Date
    05-25-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    saving files in specific folders dynamically

    Hi All,

    I am a vba novice and often get around most challenges by recording macros. I have a problem which unfortunately recording a macro cannot solve.

    I have thousands of PDF files saved as employee's "FirstName LastName" I also have a folder with hundreds of subfolders saved as line manager's "FirstName LastName"


    I have an excel file with the employee's FirstName LastName Column and another column with the line manager's FirstName LastName

    Is it possible to loop through the file with PDF employee files and save each in a subfolder as per line manager in the excel file?

    Just wanted to ask you experts if this is any feasible at all as it looks fairly complex to my small brain.

    Thank you

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: saving files in specific folders dynamically

    Have a look at this link: https://analysistabs.com/excel-vba/c...der-directory/
    You could loop through the employee name column to save a copy of each file to the corresponding folder using the manager name column.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    05-25-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: saving files in specific folders dynamically

    Looks promising and will take a look. Thanks Mumps1

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: saving files in specific folders dynamically

    My pleasure.

+ 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. Files From Different Sub Folders to one Specific Folder
    By ncf5031 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-14-2020, 08:33 PM
  2. [SOLVED] Saving files from separate folders in folder, macro
    By Pi* in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2018, 06:43 AM
  3. looping through folders - saving xls files as PDFs
    By Hugh Jass in forum Excel General
    Replies: 1
    Last Post: 05-11-2016, 06:06 PM
  4. looping through folders - saving xls files as PDFs
    By Hugh Jass in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2016, 06:06 PM
  5. Replies: 2
    Last Post: 01-04-2013, 07:22 AM
  6. dynamically saving excel tabs to individual .csv files
    By xcelnovice101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2012, 02:12 AM
  7. Replies: 1
    Last Post: 02-29-2012, 01:15 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