Results 1 to 9 of 9

VBA Code to copy cell range from multiple workbooks?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2013
    Posts
    131

    VBA Code to copy cell range from multiple workbooks?

    Hey folks!
    I could use a nudge in the right direction here. I have a large document at work that houses a range of values for numerous users, and then separate documents for each user that they fill in themselves. Every week, I have to open the user doc, copy a range of cells, paste into their respective range, and repeat that process for ALL users. It's time consuming and frustrating since I'm sure there's a more automatic way to set this up.

    I found some VBA code that'd allow me to copy a range from an open workbook, but I'd like to skip the open workbook part since it sort of defeats the purpose. Additionally, the VBA code I found only allows for one range on one workbook to be copied, where I'd actually need to copy a range from multiple workbooks. So for example:

    The main document is saved out by week. The user documents are saved out by month. I'd like to have some code on the main workbook via a macro I can set up to go look at User1's workbook (closed, though), and copy cells A2:F23 and then paste them into cells A1:F22 on the main document. Then, before completing, it would go to User2's workbook, and do the same thing, only paste into cells A21:F42. Then User 3, User 4, etc. etc.

    Is there ANY way to do this?

    I've attached an example worksheet. Tab 1 is how the individual user documents are set up, and tab 2 is how the main document is set up (you'll notice on tab 2 there are different users, but each week range is the same).

    Any help would be greatly appreciated, and if you need more info, just ask! Thanks!
    Attached Files Attached Files
    Last edited by mrbusto71; 01-28-2016 at 02:41 PM. Reason: Title change

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hi hope you can help.
    By fktripodi in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 12-15-2015, 05:16 PM
  2. Hi everyone, hope everyone is doing well....
    By sshrikanth2 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-25-2013, 02:03 PM
  3. hope someone can help!
    By cyncarrier in forum Excel General
    Replies: 1
    Last Post: 06-27-2009, 05:05 PM
  4. Hope someone can help me
    By Jay Blatherwick in forum Excel General
    Replies: 1
    Last Post: 06-15-2006, 01:10 PM
  5. Hope someone here can help me
    By AlienBeans in forum Excel General
    Replies: 9
    Last Post: 03-16-2006, 08:37 PM
  6. Hope Someone Can Help...
    By Farah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2005, 08: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