Results 1 to 2 of 2

Thread: Get the row number of the the end of one column

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2005
    Posts
    20

    Get the row number of the the end of one column

    I need to get how many rows are written in a column in a excel sheet. If bettwen the rows there are not anyone emtpy i dont have problems using:

    XXX=Spreadsheet1.Columns(1).End(xlDown).Row

    However, with empty rows, this command will return then number of the row before the first row empty.

    Can you help me?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Get the row number of the the end of one column

    How about selecting the final cell (row 65k) first, then going for xlUp rather than xlDown?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width