+ Reply to Thread
Results 1 to 5 of 5

Copy Table1 into Table2 -- more elegantly than me?

  1. #1
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Question Copy Table1 into Table2 -- more elegantly than me?

    Hello there,

    In Book1.xlsm, I've written a very hacky way of copying Table1 into Table2 so that I get the "Desired Table2". Its horrible code. Does anyone have a more elegant solution?

    screenshot.png

    Please Login or Register  to view this content.
    Thanks in advance,
    Michelle
    Last edited by michellepace; 11-15-2022 at 03:49 AM. Reason: change prefix to solved

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,367

    Re: Copy Table1 into Table2 -- more elegantly than me?

    This is a direct approach, using the listobject properties

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Re: Copy Table1 into Table2 -- more elegantly than me?

    Thank you JEC. It's definitely a lot more elegant! The problem is, the exiting table formulas get "lost" and aren't copied through to the new rows (as they do in my code).

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,367

    Re: Copy Table1 into Table2 -- more elegantly than me?

    In your example workbook, the formula’s are not getting lost here. Did you use it in another file?

  5. #5
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Re: Copy Table1 into Table2 -- more elegantly than me?

    oh sorry! I absolutely did, I see the problem now. Thanks JEC
    Last edited by michellepace; 11-14-2022 at 02:39 AM. Reason: typo

+ 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] Copy columns A and B values from Table1 on Sheet1 to Table2 on Sheet2
    By Dbroek in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2022, 03:26 AM
  2. [SOLVED] How to write a formula Or VBA Code to get from TABLE1 To TABLE2 ?
    By rayhen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-30-2020, 03:29 AM
  3. Copy unique databodyrange from table1 to table2
    By sniper1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2020, 02:25 AM
  4. [SOLVED] Copy columns from table1 to table2
    By sniper1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2020, 01:54 PM
  5. Populate and rezise table2 as table1 changes
    By Dresas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2017, 01:03 PM
  6. [SOLVED] How to convert uploaded table1 to table2?
    By tta.akmal in forum Excel General
    Replies: 5
    Last Post: 04-16-2017, 08:04 AM
  7. How to copy Table2 columns in to Table1 ?
    By bsaimsc in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2012, 07:13 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