+ Reply to Thread
Results 1 to 5 of 5

Copy dynamic range between workbooks

  1. #1
    Registered User
    Join Date
    01-23-2017
    Location
    Lebanon
    MS-Off Ver
    2010
    Posts
    9

    Copy dynamic range between workbooks

    Greetings,

    I have three workbooks, containing a similar sheet.
    I need to copy a certain range from two workbooks into the third one.

    The sheet looks like a calendar, and I fill data in the corresponding cells.

    Capture.PNG

    I have a macro that copies the data from both workbooks, but the way I'm doing it, the 2nd workbook is copying above the data of the first.

    The 1st workbook has data from beginning of month til Today().
    The 2nd workbook has data starting from tomorrow.

    Macro from 1st workbook:
    Please Login or Register  to view this content.

    Macro from 2nd workbook:
    Please Login or Register  to view this content.

    You can see that Range("G5:NR400") from 2nd workbook is copying above Range("G5:AK400") from 1st workbook...

    How can I alter the copy range code in a way so that:
    - from the 1st workbook, the range starts from G5 and ends with the column related to Today()
    - from the 2nd workbook, the range starts from Today() + 1 till NR400.

    Thanks in advance...


    This question is cross-posted in the following forums:
    https://www.mrexcel.com/forum/excel-...workbooks.html
    http://www.excelguru.ca/forums/showt...ween-workbooks
    http://www.msofficeforums.com/excel-...tml#post109960
    Last edited by elieprolb; 02-02-2017 at 07:48 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Copy dynamic range between workbooks

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.excelguru.ca/forums/showt...ween-workbooks
    https://www.mrexcel.com/forum/excel-...ml#post4742997
    http://www.msofficeforums.com/excel-...workbooks.html

  3. #3
    Registered User
    Join Date
    01-23-2017
    Location
    Lebanon
    MS-Off Ver
    2010
    Posts
    9

    Re: Copy dynamic range between workbooks

    Quote Originally Posted by Pepe Le Mokko View Post
    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.excelguru.ca/forums/showt...ween-workbooks
    https://www.mrexcel.com/forum/excel-...ml#post4742997
    http://www.msofficeforums.com/excel-...workbooks.html
    Thank you for pointing this out and sorry for any inconvenience.
    I updated my initial post to include all other links (and did same over there too).
    Thanks.

  4. #4
    Registered User
    Join Date
    01-23-2017
    Location
    Lebanon
    MS-Off Ver
    2010
    Posts
    9

    Re: Copy dynamic range between workbooks

    Link to the sheet:
    https://www.dropbox.com/s/5ve0omjt3v...heet.xlsm?dl=0

    I added the column value related to Today() from row#4 in the upper left corner.

    All three workbooks are similar to the one attached in this link (one has different sheet name inside though).

    Thanks.

  5. #5
    Registered User
    Join Date
    01-23-2017
    Location
    Lebanon
    MS-Off Ver
    2010
    Posts
    9

    Re: Copy dynamic range between workbooks


+ 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. [SOLVED] Inputboxes to select range to copy and range to paste from different workbooks
    By graphicgoose in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-29-2014, 05:51 PM
  2. [SOLVED] Very Complicated Code to Copy dynamic data from one workbook to other workbooks
    By mannuhs in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-30-2013, 02:22 PM
  3. VBA Pull/Vlook up to same range on Dynamic amount of workbooks
    By CBG05QB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2011, 11:08 AM
  4. Copy dynamic range from previous sheet and paste after last used row in a range
    By Mistweaver in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-04-2010, 06:24 PM
  5. copy data from dynamic range to static range
    By barkarlo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2009, 02:26 PM
  6. copy dynamic range from multiple workbooks/sheets
    By mrbillfog25 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2007, 03:46 PM
  7. copy dynamic ranges in multiple workbooks based on a data in 1 col
    By jbsand1001 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2005, 03:06 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