+ Reply to Thread
Results 1 to 3 of 3

vba code to copy specific pdf files to a specific folder which is scattered on drive

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,143

    vba code to copy specific pdf files to a specific folder which is scattered on drive

    I have some specific pdf files to copy which are scattered in any folder and subfolders on drive D:\\

    e.g1. Flauraudxxx.pdf,
    2. pocdd_flauraud_zzz.pdf
    3. FLAURAUd1023dc.pdf

    VBA code to copy ALL pdf file names with the word FLAURARD to specific directory backup D:\\ FLAURARD BACKUPPDF.

    Note the word may have mixed upper case and lower case .

    However , I may used the same code to copy name which contains the word banking to a specific folder

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,767

    Re: vba code to copy specific pdf files to a specific folder which is scattered on driv

    Try something like this:


    Please Login or Register  to view this content.
    Last edited by KOKOSEK; 11-18-2022 at 08:13 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,143

    Re: vba code to copy specific pdf files to a specific folder which is scattered on driv

    Tried but get run time error, automation error
    Attached Images Attached Images

+ 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. Copy Data from all files in a specific folder.
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-19-2020, 08:15 AM
  2. VBA Copy specific files listed in Excel from folder & subfolders to another folder - FSO
    By HelloFriends in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-03-2019, 02:55 PM
  3. Copy specific files from subfolders to new folder
    By dxl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2016, 06:06 PM
  4. Replies: 12
    Last Post: 03-09-2015, 05:52 PM
  5. VBA to copy specific cells from all files in a folder
    By Mehul Jaganiya in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-05-2014, 04:55 PM
  6. [SOLVED] Copy 10 rows from specific files in a folder
    By GDM69 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-07-2012, 10:13 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