+ Reply to Thread
Results 1 to 3 of 3

Loop through Sheets to add new data to last row of Table - VBA

  1. #1
    Registered User
    Join Date
    06-28-2016
    Location
    Atlanta, GA
    MS-Off Ver
    Office 2016
    Posts
    7

    Loop through Sheets to add new data to last row of Table - VBA

    I am working on a solution to copy data from several Sheets to a single sheet and append it to the last row of an existing table. I have the code working except when the data is copied to the bottom of the srcWs it does not take the form of the current table. I am using UsedRange because there are gaps in the data from the actShtNames that could amount to several blank Rows being copied.


    Please Login or Register  to view this content.
    Last edited by Jlopez21887; 04-09-2020 at 02:52 PM. Reason: show comments in green

  2. #2
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: Loop through Sheets to add new data to last row of Table - VBA

    Not spent time looking through the code, but you say you have it working except that...

    So... does it work if you expand the table first?
    Please Login or Register  to view this content.
    Tim
    Never stop learning!
    <--- please consider *-ing !

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

    Re: Loop through Sheets to add new data to last row of Table - VBA

    Quote Originally Posted by Jlopez21887 View Post
    ... to copy data from several Sheets to a single sheet and append it to the last row of an existing table ...
    Attach an xls example with the actual, real layout of data in sheets (data should not be true to protect privacy and confidentiality) and show in it the expected result of the macro.

+ 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] Loop through each sheets in the workbook to find specific cell on my table
    By Jarvin24 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-26-2016, 09:12 PM
  2. [SOLVED] Loop through data validation list and only print sheets that are populated with data
    By Kamoo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-27-2016, 11:33 PM
  3. [SOLVED] Auto email loop with formatted table data breaking on second loop VBA
    By Who_else in forum Excel General
    Replies: 6
    Last Post: 03-24-2016, 06:22 AM
  4. Replies: 4
    Last Post: 01-15-2014, 10:26 AM
  5. Loop to insert data to a series of sheets
    By KeithMale in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2013, 12:46 PM
  6. Copy Data between sheets with a worksheet loop
    By wjsok85 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2010, 07:51 AM
  7. [SOLVED] Loop that deletes sheets if data ends on a certain row
    By Please Help in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2005, 01: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