+ Reply to Thread
Results 1 to 8 of 8

Copy multiple ranges from one wbook to another

  1. #1
    Registered User
    Join Date
    03-14-2007
    Posts
    14

    Copy multiple ranges from one wbook to another

    I am trying to copy specific ranges from one workbook ( which comes by email everyday). data is dynamic everyday for each range
    in the sample workbook I have for example I am trying to copy Range("A4:H6") only and not the total row below and Range("A10:H17")
    and paste it into a different Workbook with the two ranges merged together.
    book1s.xlsx

  2. #2
    Forum Contributor
    Join Date
    02-26-2014
    Location
    Aylsham, Norfolk, UK
    MS-Off Ver
    Excel 365
    Posts
    126

    Re: Copy multiple ranges from one wbook to another

    Are you intending to create a historical log based upon the emailed data. In other words will the emailed data be compiled into the other workbook as a collection of all of them, or will it be used for that day only and essentially re-used/sent each day.

    Also will the data be always reflect the same Ranges or do the ranges change too?

  3. #3
    Registered User
    Join Date
    03-14-2007
    Posts
    14

    Re: Copy multiple ranges from one wbook to another

    Hi,
    No historical data, it's new data comes everyday , which needs to replace the older data in the target wbk , so basically the emailed data is resent everyday and the same process needs to be done everyday .
    the ranges tend to be dynamic as there could be more rows or data everyday in these ranges.
    Hope this helps to explain

  4. #4
    Forum Contributor
    Join Date
    02-26-2014
    Location
    Aylsham, Norfolk, UK
    MS-Off Ver
    Excel 365
    Posts
    126

    Re: Copy multiple ranges from one wbook to another

    Ok, So from what I can tell, you essentially need to remove all the titles and be left with just the data.

    The amount of lines changes with every new day and therefore the amount of data you require from that also changes everyday. You could have 4 rows and 8 rows one day and 2 and 15 the next for example.

  5. #5
    Registered User
    Join Date
    03-14-2007
    Posts
    14

    Re: Copy multiple ranges from one wbook to another

    yes thats correct .thanks..

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy multiple ranges from one wbook to another

    Hi niggzso

    This Code is in the attached and appears to do as you require. Change the New Workbook name as desired. Ctrl + x will fire the Code.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  7. #7
    Registered User
    Join Date
    03-14-2007
    Posts
    14

    Re: Copy multiple ranges from one wbook to another

    This Really works , Thanks a lot

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy multiple ranges from one wbook to another

    You're welcome...glad I could help. Thanks for the Rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Copy table from one Wbook to another
    By Cerkit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2013, 07:01 AM
  2. [SOLVED] Copying data from 1 wbook with changing name to Master wbook & consolidating into 1 row
    By bluepinky in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2012, 03:29 PM
  3. Replies: 0
    Last Post: 12-19-2012, 10:05 AM
  4. copy-paste from one xl wbook in to another and then save it as a .txt file.
    By biggles in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2007, 01:29 PM
  5. Amend VLOOKUP across multiple sheets for anothet wbook
    By Peinecone in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2007, 02:30 AM
  6. Replies: 5
    Last Post: 03-21-2007, 06:07 PM
  7. copy ranges from multiple worksheets
    By simora in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2005, 09:06 PM

Tags for this Thread

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