+ Reply to Thread
Results 1 to 2 of 2

Copy & Paste Table Columns

  1. #1
    Registered User
    Join Date
    04-29-2017
    Location
    London
    MS-Off Ver
    2016 Professional
    Posts
    50

    Copy & Paste Table Columns

    Dear All

    I have a situation where I need to copy specific columns from a table (secondary) and append them to another table (master). The 'master' table has a summary row at the bottom,

    With reference to the code below I need to copy specific columns from tbl2 and paste the data into specific columns in new rows at the bottom of tbl1.

    tbl2.Column2 goes to tbl1.Column4
    tbl2.Column3 goes to tbl1.Column5
    tbl2.Column4 goes to tbl1.Column6
    tbl2.Column6 goes to tbl1.Column11
    tbl2.Column7 goes to tbl1.Column12

    The code performs the first 3 copies / pastes the data into new rows at the bottom of tbl1 ok. I am unsure how to expand this to copy the data from tbl1.Columns 6 and 7 and paste into tbl2.columns 11 and 12. If I repeat the Union the data is inserted into more new rows at then bottom of tbl1 where as I would like it to be inserted into the same rows created by the first paste operation.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Copy & Paste Table Columns

    Enclose an example of these two tables and the expected result, it will be easier to create a solution.

+ 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. loop through files find columns and copy/paste them as columns in master workbook
    By Michal1111 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2018, 10:40 PM
  2. Replies: 8
    Last Post: 01-17-2018, 10:53 AM
  3. Macro to Copy from 2 Columns, Paste Value in the next 2 Columns, Then clear 1st Columns
    By MHALTTUNEN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2014, 03:34 PM
  4. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  5. [SOLVED] Faster way to copy and paste multiple columns in Sheet1 to corresponding columns in Sheet2
    By babbeleme1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-19-2013, 12:55 AM
  6. Replies: 2
    Last Post: 02-22-2011, 02:07 AM
  7. 2 Macro's: only vertical copy/paste action and copy-paste 14 columns to the right.
    By vdongen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2010, 10:34 AM

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