+ Reply to Thread
Results 1 to 8 of 8

Repeat last row of table

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Repeat last row of table

    I'm driving myself batty trying to find what should be an easy solution. All I want to do is copy the last row of my table and paste it into the next row of my table (so my last row is repeated). My latest attempt is below. It Almost works. On the last line, if I add ".Value" after "Lastrow_w_Data)" then the Values from my last row are copied into my new last row. But, I also want the formulas. Hence my code as it stands, which instead only inserts a blank line at the bottom of my table. Why, why, why can't this be easy?

    Sorry, but I've been banging my head against this for way too long. I think I've read everything on the internet about working with tables, and I'm frustrated I can't figure it out. So, I'm throwing myself on your tender mercies. Please be kind.

    Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,419

    Re: Repeat last row of table

    Suggest you post a sample workbook. But, try:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Repeat last row of table

    Sample attached. i tried your code, but got an "object required" error on the last line. Story of my life when it comes to this little task.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,419

    Re: Repeat last row of table

    Oops, sorry:

    Please Login or Register  to view this content.

    Regards, TMS

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Repeat last row of table

    Or maybe more robust,

    Please Login or Register  to view this content.
    and condensed,

    Please Login or Register  to view this content.
    Cheers,
    berlan
    Last edited by berlan; 08-08-2015 at 03:57 AM.

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Repeat last row of table

    Sweet. I was using TMS's solution over the weekend, and saw Berlan's two choices this morning. The condensed appears to do everything I need it to do, short and sweet. Thanks so much for supplying that one!

  7. #7
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Repeat last row of table

    You're welcome, thanks for the kind feedback

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,419

    Re: Repeat last row of table

    You're welcome. Thanks for the rep.

+ 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. Hardcopy list generated by Excel's Data Table, refresh table and repeat
    By Ronnet2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-27-2015, 06:24 AM
  2. No duplicate repeat for each session and table
    By JieJenn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2012, 08:19 AM
  3. Replies: 3
    Last Post: 01-27-2011, 10:02 AM
  4. Pivot table - Repeat field name
    By mkvassh in forum Excel General
    Replies: 0
    Last Post: 03-20-2009, 05:02 AM
  5. [SOLVED] PIvot Table - Repeat Row Labels
    By JenL in forum Excel General
    Replies: 1
    Last Post: 02-10-2006, 01:10 PM
  6. [SOLVED] How do I get the Pivot Table row labels to repeat?
    By karen_g in forum Excel General
    Replies: 2
    Last Post: 02-07-2006, 05:40 PM
  7. How do I repeat a value in a pivot table in Excel?
    By Joanne R. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2005, 11:05 AM

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