+ Reply to Thread
Results 1 to 3 of 3

VBA: How to locate the last "CELL" of a specific "COLUMN"

  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    2

    VBA: How to locate the last "CELL" of a specific "COLUMN"

    Hello. I am new to VBA. My problem is quite basic. How do I locate the last used CELL or ROW in a "specific" COLUMN (not columns or sheet)? Most of the solutions focus on the general last rows.

    I have a pre-designed worksheets with formulas below the empty entry cells. I would like to access the cells or rows consecutively in individual columns according to options in the heading. Example: If B2 has a data and I would like to input data on C2 the common algorithm does not allow me access but selects C3 for me. How to force Excel to let me squeeze the data without empty cell-spaces?

    Thanks in advance.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,962

    Re: VBA: How to locate the last "CELL" of a specific "COLUMN"

    For the row number use:
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 05-16-2013 at 05:01 PM. Reason: Added Code Tags
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    05-15-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: VBA: How to locate the last "CELL" of a specific "COLUMN"

    Thanks for the prompt reply. But it does not compress the data neatly into the cells in the sheet. It leaves some empty spaces in some columns. If, B4 has data and C is empty, data input falls on C5 rather than C1 or C2 depending on the offset values.

+ 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