+ Reply to Thread
Results 1 to 4 of 4

Open all worksheets in a specific folder

  1. #1
    Registered User
    Join Date
    07-08-2008
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    8

    Open all worksheets in a specific folder

    Hi. As FileSearch doesn't work in Office 2007, I am trying to use royUk's code (see below) to copy cells from workbooks in a directory to one summary worksheet. The code works perfectly to step through the files in the directory and allows me to copy one cell at a time from the opened workbook to my summary workbook, but I can't get it to copy more than one cell at a time per line of code.

    I would like to also copy a fixed range A13:J27 from each opened workbook to cells Ax:Jx (where x will increment by 14 each time) on my summary sheet in one go and not have to copy that range cell by cell. Is this possible?

    Please Login or Register  to view this content.
    Any help will be greatly appreciated.
    Thanks,
    Bruce

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    macro

    Hi
    try the following modifications
    Please Login or Register  to view this content.
    if it does not work, Change the file path in the second macro posted in the following link
    http://www.mrexcel.com/forum/showthr...ight=file+open
    and the run the macro
    Ravi

  3. #3
    Registered User
    Join Date
    07-08-2008
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    8
    Thanks Ravi. Will give it a go and get back to you.
    Bruce

  4. #4
    Registered User
    Join Date
    07-08-2008
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    8
    Thanks Ravi, that does what I need. Below is the code - slightly modified - I ended up with to increment the row number on each loop so that the next A13:J27 range copied is pasted into the next blank row down.


    Please Login or Register  to view this content.
    Much appreciated!
    Bruce

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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