+ Reply to Thread
Results 1 to 5 of 5

Copy a Range from each workbook in a folder to another folder

  1. #1
    Registered User
    Join Date
    12-31-2014
    Location
    Iran
    MS-Off Ver
    2010
    Posts
    6

    Copy a Range from each workbook in a folder to another folder

    Hi,
    i'm looking for a macro to copy several rows of workbooks in a folder and then paste them to the workbooks in another folder that the workbooks in source folder and destination folder have the same name.

    thanks in advance

  2. #2
    Registered User
    Join Date
    05-13-2014
    Location
    Best
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Copy a Range from each workbook in a folder to another folder

    Can you please be little more specific?
    Folder A has workbooks a:z, Workbook a has sheets 1:n
    Folder B has workbooks with same name. You want to copy from A to B
    Incase Workbook in B does not exist: Create it?

    Please elucidate!

    bart

  3. #3
    Registered User
    Join Date
    12-31-2014
    Location
    Iran
    MS-Off Ver
    2010
    Posts
    6

    Re: Copy a Range from each workbook in a folder to another folder

    Thank you gave the answer

    Folder A for example has 300 workbooks, these workbooks are in folder B also ,and all worbooks have one sheet.
    I want copy only some parts of workbooks in folder A in worbooks in folder B, for example i want copy cell A3 up to BI20 of worbooks in folder A into workbooks in folder B .

    I hope I have explained clearly .

  4. #4
    Registered User
    Join Date
    05-13-2014
    Location
    Best
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Copy a Range from each workbook in a folder to another folder

    http://vba4all.com/various-ways-to-p...mulas-and-vba/

    Hope this helps a little.
    I have no 100% solution for you! You need to open the workbook otherwise you cannot copy Data.
    However you cannot open workbooks with the same name!
    So I guess you must work via a Master workbook like:
    1. Create Master workbook with the MACRO
    2. Open and Copy Range from FILEa to temporary location in Macroworkbook.
    3. Close FILEa
    4. Open FILEb and copy Range from MacroWorkbook.
    5. Close FILEb
    6. Do this with all remaining workbooks!

    success

  5. #5
    Registered User
    Join Date
    12-31-2014
    Location
    Iran
    MS-Off Ver
    2010
    Posts
    6

    Re: Copy a Range from each workbook in a folder to another folder

    Ok thanxs
    I'm trying to write this macro .
    Thank you to guide .

+ 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. Loop through files in folder, copy range, Paste range to original workbook
    By knevil in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-09-2016, 05:33 PM
  2. [SOLVED] VBA to save a workbook to a folder but create that folder if it doesn't already exist
    By cnixon in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-24-2014, 06:01 PM
  3. Code to create New Folder (if doesn't exist) and then Save Workbook to folder
    By jenhawley in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-10-2013, 03:09 PM
  4. [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
  5. Copy a range from worksheets in folder to master workbook
    By feature86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2007, 06:30 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