+ Reply to Thread
Results 1 to 2 of 2

Selecting last row in a table that changes size

Hybrid View

liam91 Selecting last row in a table... 03-04-2014, 08:53 PM
alansidman Re: Selecting last row in a... 03-04-2014, 09:00 PM
  1. #1
    Registered User
    Join Date
    03-04-2014
    Location
    perth
    MS-Off Ver
    Excel 2010
    Posts
    1

    Selecting last row in a table that changes size

    Hi guys

    I have a program running that places the results from a different program in a single column table, increasing one row at a time when the macro is run. Problem is I need to select the last value entered in the table (bottom row) and past it on itself [to remove the today() value and leave me with the actual date so it doesn't update to today every time the macro is run]. The copy and paste values part I know how to do, just not actually selecting the last row in a column that is changing size.

    The code below is the code I'm using to create the column, I'm sure it is a simple addition to the code just not sure where to go?. Excel 2010
    Dim Tooth_Table As ListObject
    Dim Table_Row As ListRow
    
    Set Tooth_Table = ActiveSheet.ListObjects(1)
    Set Table_Row = Tooth_Table.ListRows.Add
    
    Table_Row.Range(1, 1).Value = "=Today()"
    Cheers
    Last edited by alansidman; 03-04-2014 at 09:00 PM. Reason: code tags

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,772

    Re: Selecting last row in a table that changes size

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Selecting Names Based on associated value size.
    By machinist in forum Excel General
    Replies: 6
    Last Post: 05-22-2013, 06:41 PM
  2. Selecting the range of a table that changes size
    By Jessica.Bush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2010, 05:10 PM
  3. Automatically selecting print area based on Pivot Table size
    By mike703 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2008, 11:17 AM
  4. [SOLVED] Auto size a pivot table to a page size
    By *.* in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-23-2006, 12:09 AM
  5. Selecting many Checkboxes to align & size
    By Saz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2006, 12:01 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