+ Reply to Thread
Results 1 to 7 of 7

Show the last cell in a column

  1. #1
    Forum Contributor
    Join Date
    10-31-2006
    Location
    Oslo, Norway
    MS-Off Ver
    MS 365 Business
    Posts
    287

    Show the last cell in a column

    I need a macro which 'sends me' to the last cell, with any content, in a column.

    In this example I want the macro to send me to D22, but the number of rows, which
    are filled out, varies and could be thousends of rows.

    Could someone help me?
    Attached Files Attached Files
    Last edited by Saturn; 07-09-2013 at 11:37 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Show the last cell in a column

    Hi, Saturn,

    if the column is thoroughly filled:
    Please Login or Register  to view this content.
    If there are gaps in between the code above will you send to the last cell of the block. The last cell of cteh Column could be reached by
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Show the last cell in a column

    Here:
    Please Login or Register  to view this content.
    Never use Merged Cells in Excel

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Show the last cell in a column

    Hi, zbor,

    maybe you better change the constant number of rows to work with what´s in the sheet like
    Please Login or Register  to view this content.
    since there are just a couple of more rows available from 2007 on (only from 2^16 to 2^20 ).

    Ciao,
    Holger

    PS: double post of yours due to Forum Backup/Maintenance.

  5. #5
    Forum Contributor
    Join Date
    10-31-2006
    Location
    Oslo, Norway
    MS-Off Ver
    MS 365 Business
    Posts
    287

    Re: Show the last cell in a column

    Hi HaHoBe and zbor

    None of these codes works. The one from HaHoBe sends me to the very last row in the sheet.
    I would like to have the code for the last row/cell which is filled out in a particular column.
    Any other suggestions ?

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Show the last cell in a column

    FWIW:

    Please Login or Register  to view this content.

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Show the last cell in a column

    Try...

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

+ 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