+ Reply to Thread
Results 1 to 4 of 4

Find last cell in active table

  1. #1
    Forum Contributor
    Join Date
    10-07-2011
    Location
    Plano, TX USA
    MS-Off Ver
    Excel 2013
    Posts
    141

    Find last cell in active table

    What code would I use to find the last cell in an active table? I need to find the last cell in the table, not the last cell in the worksheet.

    I want to use a generic macro that can be used to add a row on any given spreadsheet tab. The macro is run when you press "Add Row" button on the spreadsheet. I need to find the last cell in the table, not the last cell in the worksheet.

    Thanks in advance

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Find last cell in active table

    This mini-macro selects the row immediately below a ListObject (Table):

    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    10-07-2011
    Location
    Plano, TX USA
    MS-Off Ver
    Excel 2013
    Posts
    141

    Re: Find last cell in active table

    Thanks Ron. I'll give it a try. What I really need is the last cell of the table.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Find last cell in active table

    OK...This macro selects the last table cell in the last row of the table:

    Please Login or Register  to view this content.
    Does that help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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