+ Reply to Thread
Results 1 to 3 of 3

Resizing table to last row in sheet

  1. #1
    Registered User
    Join Date
    06-27-2018
    Location
    Paris, France
    MS-Off Ver
    Excel, 2016
    Posts
    30

    Resizing table to last row in sheet

    Heya,

    I have the following two pieces of code:

    For finding the last row in the sheet:

    Please Login or Register  to view this content.
    For resizing a table:

    Please Login or Register  to view this content.
    Both work as expected.What I'd like to do now is somehow insert the lastrow inside the second half of the Resize Range paramater, something (logically speaking) like ("$A$7:$K$lastrow"). This obviously won't work, but what would the correct syntax be? Tried looking up, but kept running into xlDowns which is not what I'm aiming for (I specifically need to only resize to the last row with values in the entire sheet).

    Many thanks!
    Last edited by Matlas; 11-25-2020 at 06:25 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Resizing table to last row in sheet

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    06-27-2018
    Location
    Paris, France
    MS-Off Ver
    Excel, 2016
    Posts
    30

    Re: Resizing table to last row in sheet

    Solved. Thanks mehmetcik!

+ 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. Table Resizing (based on two cell values outside of table)
    By jrabelo in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-24-2020, 10:38 AM
  2. Resizing Statement of Account Table
    By kennsann in forum Excel General
    Replies: 5
    Last Post: 07-05-2019, 06:27 AM
  3. Resizing a chart and table (not so simple)
    By Jet0L19 in forum Excel General
    Replies: 0
    Last Post: 05-18-2012, 07:18 PM
  4. Resizing cells in a selection without resizing entire sheet
    By Danielle via OfficeKB.com in forum Excel General
    Replies: 4
    Last Post: 08-11-2006, 05:10 PM
  5. Resizing Pivot table column
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2006, 12:45 PM
  6. [SOLVED] Resizing Pivot table column
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2006, 10:15 AM
  7. [SOLVED] Resizing Pivot table column
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2006, 10:10 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