+ Reply to Thread
Results 1 to 3 of 3

Finding the rownumber in excel sheet

  1. #1
    Registered User
    Join Date
    08-02-2007
    Posts
    30

    Finding the rownumber in excel sheet

    Hi,

    I have created a register in excel containing information about members in a sports club. I have made a form which helps the user to add new members to the register. A procedure will check if the new member added matches with any of the existing members. If not, the new member will be added in the end of the register (the last free row). This is done by using the following code:

    Please Login or Register  to view this content.
    where Lastrow is defined as an Object.

    I now need to know the code/expression required to get the actual row number of "Lastrow" (ie say that the list contain 9 names, then the new member would be added on row 10). How do I get this row number?


    Thx

    Marcus

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Marcus,

    Your current code has LastRow as a Range Object. You can get the Row in 2 ways...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    08-02-2007
    Posts
    30

    LR=Lastrow.row worked, Thx!

    Your tip worked perfectly fine.

    Thx!

    Marcus


    Quote Originally Posted by Leith Ross
    Hello Marcus,

    Your current code has LastRow as a Range Object. You can get the Row in 2 ways...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

+ 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