+ Reply to Thread
Results 1 to 2 of 2

copy file from excel list with extension to other folder

  1. #1
    Registered User
    Join Date
    08-20-2020
    Location
    Milan
    MS-Off Ver
    2016
    Posts
    13

    copy file from excel list with extension to other folder

    Hi All,

    I am new in VBA, so I have a list of document (with extension .pdf, .docx, etc) in excel column. What I would like to do is to copy all document in the list, from source folder to destination folder.

    I already tried some code, it works but the code copy all the files in the folder instead of the file in list (The document list is only in B3:B10).
    Any help really appreciated.

    Thanks in advance.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: copy file from excel list with extension to other folder

    When you say "with extension .pdf, .docx, etc" I took that to mean that your list of file names includes the extensions

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 08-24-2020 at 02:18 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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: 02-13-2020, 09:57 AM
  2. iterate through a list and find a file, copy that file to another folder
    By yeqiu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2020, 11:20 PM
  3. Loop through all files in a folder with a specific file extension and save in excel
    By akwishestofish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2019, 05:43 PM
  4. Replies: 18
    Last Post: 02-18-2019, 07:42 AM
  5. [SOLVED] Copy files of a certain file name length, extension & modification date to another folder
    By JET2011 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-25-2018, 02:38 PM
  6. Replies: 2
    Last Post: 12-29-2015, 04:19 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