+ Reply to Thread
Results 1 to 3 of 3

Excel Table VBA Resize based on another Column Last Populated Cell

  1. #1
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Question Excel Table VBA Resize based on another Column Last Populated Cell

    Hi All,

    I would like to Resize my Table in the attached workbook based on the last Populated Cell in "Column D" (i.e. until Row 33).

    We need to do this via VBA Code as this code will go inside another macro.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Excel Table VBA Resize based on another Column Last Populated Cell

    Please try

    Sheets(1).ListObjects("Table1").Resize Range("A3:B" & Range("D" & Rows.Count).End(xlUp).Row)

  3. #3
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Re: Excel Table VBA Resize based on another Column Last Populated Cell

    Wow so Simple.
    Thanks and that was cool.
    Just in a Single line ...

+ 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. Resize table based on cell values
    By robhall1966 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-24-2019, 07:02 AM
  2. [SOLVED] Resize range to include only populated column...
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2018, 03:14 AM
  3. Replies: 11
    Last Post: 01-23-2017, 11:40 AM
  4. Excel VBA to insert & resize picture based on cell url
    By shabeersa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2016, 03:54 AM
  5. Resize table based on Cell value
    By jdurand2 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-15-2014, 11:01 AM
  6. [SOLVED] VBA to resize a table based on a cell value
    By Vasool in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2013, 06:10 PM
  7. Resize range (table) in VBA based on last row value in another worksheet
    By Erin1986 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2013, 01:36 AM

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