+ Reply to Thread
Results 1 to 8 of 8

Copy/paste tables from one sheet to another

  1. #1
    Registered User
    Join Date
    12-30-2016
    Location
    Edinburgh, UK
    MS-Off Ver
    2013
    Posts
    29

    Copy/paste tables from one sheet to another

    I have created something similar in the past but not sure how to copy range of x-number tables to another sheet where it would show one combined table.

    The spread sheet has unlimited tables (i.e. 1st table - A2:G17, 2nd table - I2:O17, 3rd table Q2:W17 and so on...)

    I would like to get all the data in another sheet each one below the previous one (if that makes some sense) so if fact Table 2 - I2:O17 would be just below table one so starting from A18:G33 and the same with every next table with data. Otherwise I need to copy and paste manually and it might be many tables imported in this sheet from the software (to which I have no access).

    The similar macro that I have created in the past was as below but I have no clue where to start here as the old one was moving the whole line and this one must check whether there is more tables to be copied and paste to another sheet. It was also moving just one line and I want to move the whole table now:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Scavenger102; 11-20-2017 at 05:06 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy/paste tables from one sheet to another

    Unfortunately your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-30-2016
    Location
    Edinburgh, UK
    MS-Off Ver
    2013
    Posts
    29

    Re: Copy/paste tables from one sheet to another

    Now done, thank you Richard

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Copy/paste tables from one sheet to another

    Hi,

    Is your real data actually set up as Tables, or simply normal ranges? The former would be much much simpler.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Registered User
    Join Date
    12-30-2016
    Location
    Edinburgh, UK
    MS-Off Ver
    2013
    Posts
    29

    Re: Copy/paste tables from one sheet to another

    Hi

    It is real data that is being sent to me daily in the format as saved in excel file that I have attached. The X's are real data which I can not show. I agree that the former would be much easier but the task is to create a VBA that would do as stated above.

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Copy/paste tables from one sheet to another

    Assuming the tables are always 1 column apart as in your example, perhaps this
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-30-2016
    Location
    Edinburgh, UK
    MS-Off Ver
    2013
    Posts
    29

    Re: Copy/paste tables from one sheet to another

    Thank you, that's exactly what I was looking for

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Copy/paste tables from one sheet to another

    You're welcome. Please remember to mark the thread Solved using the Thread Tools link at the top of the page.

+ 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 paste loop using multiple tables
    By Goldbadger in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-19-2015, 08:36 AM
  2. [SOLVED] VBA copy and paste tables into word
    By colbyski90 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2014, 05:24 PM
  3. Macro to copy/paste tables from one worksheet into another
    By Coachwooten in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2013, 10:47 PM
  4. [SOLVED] Macro to copy paste Tables to Master sheet
    By dawnmau in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-02-2013, 06:48 PM
  5. Transfering (copy/paste) Tables
    By MaxPower! in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2007, 07:10 AM
  6. Replies: 1
    Last Post: 01-04-2005, 06: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