+ Reply to Thread
Results 1 to 7 of 7

VBA to insert copied data into Table nextrow available.

  1. #1
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,237

    VBA to insert copied data into Table nextrow available.

    Hi All

    I have below code that copies from a Table to a New table and then deletes. problem is every time the code runs, the data in new table is overwritten. I need it to be added to next row available in Table and move down. How can I tweak the code to allow for my needs.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: VBA to insert copied data into Table nextrow available.

    Probably with
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: VBA to insert copied data into Table nextrow available.

    duplicate message
    Last edited by kasan; 12-21-2016 at 05:46 AM. Reason: delete

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,237

    Re: VBA to insert copied data into Table nextrow available.

    Hi Kasan

    Thanks for reply. i tried that previously and got a "Runtime error 1004, Application defined or Object defined error"

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,237

    Re: VBA to insert copied data into Table nextrow available.

    Both are Tables

    Sheets("Customer Listing") is Table2
    Sheets("Lost Customers") is Table 3

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,237

    Re: VBA to insert copied data into Table nextrow available.

    Hi All

    Not to worry, i solved my problem as follows:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: VBA to insert copied data into Table nextrow available.

    Hi,

    If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
    Please consider:
    Be polite. Thank those who have helped you.
    Click the star icon in the lower left part of the contributor's post and add Reputation. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

+ 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] Insert rows copied from one sheet into a table on another.
    By apostrophe27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2016, 02:07 PM
  2. [SOLVED] insert copied data from sheet1 to sheet2
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2014, 10:21 AM
  3. Replies: 1
    Last Post: 12-07-2013, 05:23 PM
  4. [SOLVED] macro button to insert copied cells and move data
    By uncle alex in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2013, 06:13 AM
  5. [SOLVED] Copy/Paste from a Filtered Range and Insert copied data NOT overwrite
    By Simon.Ward in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-12-2013, 11:14 AM
  6. Macro - insert line based on copied data
    By epedersen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2012, 03:21 PM
  7. Insert copied data, leave rows in tact...
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2008, 10:30 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