+ Reply to Thread
Results 1 to 7 of 7

Moving Files from Source Folder to Specific Folder

  1. #1
    Forum Contributor
    Join Date
    09-05-2013
    Location
    Malta
    MS-Off Ver
    Excel 2016
    Posts
    103

    Moving Files from Source Folder to Specific Folder

    Good evening Gurus,

    So.... I have a folder with 100 PDF's saved and I want to move each individual file, from this source folder to an individual folder. (I can create the folders before or have the VBA create them for me)

    So I would have:
    I have 100 PDF files in a folder 'Source',

    I have the list of these PDF file names in excel In Col A
    I have a list of the folders names where i want each one to move to in Col B.

    Thanks
    Sam

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Moving Files from Source Folder to Specific Folder

    Try this:
    Please Login or Register  to view this content.
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Moving Files from Source Folder to Specific Folder

    Assuming:
    1) Target directories already exist.
    2) Filenames in column A have the .pdf extension present
    3) The fullpath in column B has the backslash at the end.
    then this will do.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Moving Files from Source Folder to Specific Folder

    try
    Please Login or Register  to view this content.
    need to enter complete path with filename of source and target folder in Column A and B respectively
    Last edited by mohan.r1980; 12-07-2018 at 06:46 AM.
    Regards,
    MohanS


    "Perfection is not attainable, but if we chase perfection we can catch excellence." - Vince Lombardi

    You can simply say thanks by clicking "*Add Reputation" icon

  5. #5
    Forum Contributor
    Join Date
    09-05-2013
    Location
    Malta
    MS-Off Ver
    Excel 2016
    Posts
    103

    Re: Moving Files from Source Folder to Specific Folder

    Thank you all - sorted. Used a combination of things. :-)

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Moving Files from Source Folder to Specific Folder

    Glad to help and thanks for rep+.

  7. #7
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Moving Files from Source Folder to Specific Folder

    Your Welcome and thanks for rep++.

+ 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. Replies: 1
    Last Post: 01-28-2019, 06:55 PM
  2. [SOLVED] Copy certain files from Source folder to Destination folder
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2015, 08:56 PM
  3. copying data from excel files in a source folder to target folder
    By Javed07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 04:27 PM
  4. Moving files folder to folder using macro.
    By azureriders in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2011, 01:04 AM
  5. Moving all but the newest files from one folder to an Archive folder.
    By Zaphius in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2007, 11:48 PM
  6. Replies: 1
    Last Post: 01-24-2006, 11:35 AM
  7. Replies: 1
    Last Post: 01-24-2006, 12:25 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