+ Reply to Thread
Results 1 to 2 of 2

Thread: I can' count number of filled cells in row

  1. #1
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Gotemba, Shizuoka, Japan
    MS-Off Ver
    Excel 2007
    Posts
    283

    I can' count number of filled cells in row

    The code below gives me the row number containing the last filled cell in column A.
    How would the equivalent code look like to obtain the column number of the last filled cell in row 1?

    LastRow = Range("A" & Rows.Count).End(xlUp).Row
    Last edited by dschmitt; 03-11-2010 at 09:47 PM.

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: I can' count number of filled cells in row

    maybe something like this:

    lastcol = Cells(1, Columns.Count).End(xlToLeft).Column

+ 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.2.0