+ Reply to Thread
Results 1 to 4 of 4

copy selected files save into another folder (using vba)

  1. #1
    Forum Contributor
    Join Date
    01-06-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    118

    copy selected files save into another folder (using vba)

    HI,

    there are some excel files along with ppt files in a folder. i want to select specific excel files(.xls or .xlsx) / all files (.xls or .xlsx) from that chosen folder and copy into another specific folder. pls help me.

    regards
    shiva
    Last edited by shiva_raj; 04-29-2017 at 12:25 PM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,202

    Re: copy selected files save into another folder (using vba)

    Hi shiva_raj

    Have a look at these links
    https://www.rondebruin.nl/win/s3/win026.htm
    https://analysistabs.com/excel-vba/c...der-directory/
    https://www.mrexcel.com/forum/excel-...b-folders.html
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    01-06-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    118

    Re: copy selected files save into another folder (using vba)

    HI, thank you for reply

    Sorry. the above links are not related to me. in the links, they took standard path. but in my case, i need to choose some folders from different paths from different drives. and then, all excel files/selected files need to save and then save into another selectted folder.

    ex: i choose a1,a2,a3,a4,a5 folders from d drive and save as related files into b1,b2,b3,b4,b5 folders respectively then
    i choose c1,c2 folders from E drive and save related files into d1,d2 folders repectively then
    i choose a6, a7 folders from d drive and save as related files into b6, b7 folders respectively and so on...

    in vba code, everytime , i need to pick 2 folders (source folder, final folder). then code should open each file from "source folder" and save as into "final folder" with same file name.

    i hope you get my point

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,202

    Re: copy selected files save into another folder (using vba)

    See if this is what you are wanting to do:
    Please Login or Register  to view this content.

+ 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: 12
    Last Post: 03-09-2015, 05:52 PM
  2. loop through selected files in folder
    By OWA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2013, 11:10 AM
  3. Macro to create a folder and then save all files in that folder
    By gokzee in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-27-2013, 01:49 PM
  4. Open selected csv files from folder
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2013, 07:21 PM
  5. [SOLVED] VBA Code open files in folder, copy text to workbook-Next time folder opened copy only new
    By Bikeman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-02-2013, 07:59 PM
  6. Save copy of folder with linked files
    By SOS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-01-2006, 03:15 AM
  7. "Folder Select" Dialogue - Opening multiple files from selected folder
    By Rob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2005, 10:05 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